diff --git a/src/apis/admin/directory_v1.ts b/src/apis/admin/directory_v1.ts index 2dc19b9d531..4ba143934aa 100644 --- a/src/apis/admin/directory_v1.ts +++ b/src/apis/admin/directory_v1.ts @@ -2874,7 +2874,7 @@ export namespace admin_directory_v1 { * @param {string=} params.orgUnitPath Full path of the organizational unit or its ID * @param {string=} params.pageToken Token to specify next page in the list * @param {string=} params.projection Restrict information returned to a set of selected fields. - * @param {string=} params.query Search string in the format given at http://support.google.com/chromeos/a/bin/answer.py?hl=en&answer=1698333 + * @param {string=} params.query Search string in the format given at http://support.google.com/chromeos/a/bin/answer.py?answer=1698333 * @param {string=} params.sortOrder Whether to return results in ascending or descending order. Only of use when orderBy is also used * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. @@ -3221,7 +3221,7 @@ export namespace admin_directory_v1 { projection?: string; /** * Search string in the format given at - * http://support.google.com/chromeos/a/bin/answer.py?hl=en&answer=1698333 + * http://support.google.com/chromeos/a/bin/answer.py?answer=1698333 */ query?: string; /** @@ -4439,7 +4439,7 @@ export namespace admin_directory_v1 { * @param {integer=} params.maxResults Maximum number of results to return. Default is 200 * @param {string=} params.orderBy Column to use for sorting results * @param {string=} params.pageToken Token to specify next page in the list - * @param {string=} params.query Query string search. Should be of the form "". Complete documentation is at https://developers.google.com/admin-sdk/directory/v1/guides/search-users + * @param {string=} params.query Query string search. Should be of the form "". Complete documentation is at https://developers.google.com/admin-sdk/directory/v1/guides/search-groups * @param {string=} params.sortOrder Whether to return results in ascending or descending order. Only of use when orderBy is also used * @param {string=} params.userKey Email or immutable Id of the user if only those groups are to be listed, the given user is a member of. If Id, it should match with id of user object * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. @@ -4693,7 +4693,7 @@ export namespace admin_directory_v1 { /** * Query string search. Should be of the form "". Complete documentation is * at - * https://developers.google.com/admin-sdk/directory/v1/guides/search-users + * https://developers.google.com/admin-sdk/directory/v1/guides/search-groups */ query?: string; /** @@ -5842,7 +5842,7 @@ export namespace admin_directory_v1 { * @param {string=} params.orderBy Column to use for sorting results * @param {string=} params.pageToken Token to specify next page in the list * @param {string=} params.projection Restrict information returned to a set of selected fields. - * @param {string=} params.query Search string in the format given at http://support.google.com/a/bin/answer.py?hl=en&answer=1408863#search + * @param {string=} params.query Search string in the format given at http://support.google.com/a/bin/answer.py?answer=1408863#search * @param {string=} params.sortOrder Whether to return results in ascending or descending order. Only of use when orderBy is also used * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. @@ -5985,7 +5985,7 @@ export namespace admin_directory_v1 { projection?: string; /** * Search string in the format given at - * http://support.google.com/a/bin/answer.py?hl=en&answer=1408863#search + * http://support.google.com/a/bin/answer.py?answer=1408863#search */ query?: string; /** diff --git a/src/apis/androidmanagement/v1.ts b/src/apis/androidmanagement/v1.ts index b3c25e02389..f1cc5543430 100644 --- a/src/apis/androidmanagement/v1.ts +++ b/src/apis/androidmanagement/v1.ts @@ -163,7 +163,8 @@ export namespace androidmanagement_v1 { */ delegatedScopes?: string[]; /** - * Whether the app should be disabled, but app data is preserved. + * Whether the app is disabled. When disabled, the app data is still + * preserved. */ disabled?: boolean; /** @@ -426,7 +427,10 @@ export namespace androidmanagement_v1 { */ hardwareStatusSamples?: Schema$HardwareStatus[]; /** - * The last time the device sent a policy compliance report. + * The last time the device sent a policy compliance report. Important: This + * field is deprecated. The timestamp will be on last_status_report_time + * field, and last_status_report_time will be used for both status report + * and compliance report. */ lastPolicyComplianceReportTime?: string; /** @@ -1130,7 +1134,8 @@ export namespace androidmanagement_v1 { */ export interface Schema$PermissionGrant { /** - * The android permission, e.g. android.permission.READ_CALENDAR. + * The android permission or group, e.g. android.permission.READ_CALENDAR or + * android.permission_group.CALENDAR. */ permission?: string; /** diff --git a/src/apis/androidpublisher/v2.ts b/src/apis/androidpublisher/v2.ts index 9191c12b0cf..2c91852c8e2 100644 --- a/src/apis/androidpublisher/v2.ts +++ b/src/apis/androidpublisher/v2.ts @@ -407,6 +407,13 @@ export namespace androidpublisher_v2 { * price is always in the developer's Checkout merchant currency. */ defaultPrice?: Schema$Price; + /** + * Grace period of the subscription, specified in ISO 8601 format. It will + * allow developers to give their subscribers a grace period when the + * payment for the new recurrence period is declined. Acceptable values = + * "P3D" (three days) and "P7D" (seven days) + */ + gracePeriod?: string; /** * List of localized title and description data. */ @@ -2368,6 +2375,12 @@ export namespace androidpublisher_v2 { /** * androidpublisher.edits.bundles.upload + * @desc Uploads a new Android App Bundle to this edit. If you are using the + * Google API client libraries, please increase the timeout of the http + * request before calling this endpoint (a timeout of 2 minutes is + * recommended). See: + * https://developers.google.com/api-client-library/java/google-api-java-client/errors + * for an example in java. * @alias androidpublisher.edits.bundles.upload * @memberOf! () * diff --git a/src/apis/androidpublisher/v3.ts b/src/apis/androidpublisher/v3.ts index 2bf0848a6c7..f4b89a57fda 100644 --- a/src/apis/androidpublisher/v3.ts +++ b/src/apis/androidpublisher/v3.ts @@ -389,6 +389,13 @@ export namespace androidpublisher_v3 { * price is always in the developer's Checkout merchant currency. */ defaultPrice?: Schema$Price; + /** + * Grace period of the subscription, specified in ISO 8601 format. It will + * allow developers to give their subscribers a grace period when the + * payment for the new recurrence period is declined. Acceptable values = + * "P3D" (three days) and "P7D" (seven days) + */ + gracePeriod?: string; /** * List of localized title and description data. */ @@ -1781,6 +1788,12 @@ export namespace androidpublisher_v3 { /** * androidpublisher.edits.bundles.upload + * @desc Uploads a new Android App Bundle to this edit. If you are using the + * Google API client libraries, please increase the timeout of the http + * request before calling this endpoint (a timeout of 2 minutes is + * recommended). See: + * https://developers.google.com/api-client-library/java/google-api-java-client/errors + * for an example in java. * @alias androidpublisher.edits.bundles.upload * @memberOf! () * diff --git a/src/apis/appengine/v1.ts b/src/apis/appengine/v1.ts index f7010625b50..babf481acdb 100644 --- a/src/apis/appengine/v1.ts +++ b/src/apis/appengine/v1.ts @@ -582,6 +582,11 @@ export namespace appengine_v1 { * "myapi.endpoints.myproject.cloud.goog" */ name?: string; + /** + * Endpoints rollout strategy. If FIXED, config_id must be specified. If + * MANAGED, config_id must be omitted. + */ + rolloutStrategy?: string; } /** * Custom static error page to be served when an error occurs. diff --git a/src/apis/appengine/v1beta.ts b/src/apis/appengine/v1beta.ts index ab1d7d5df09..6d4092d527a 100644 --- a/src/apis/appengine/v1beta.ts +++ b/src/apis/appengine/v1beta.ts @@ -621,8 +621,8 @@ export namespace appengine_v1beta { * configuration ID. The config_id field is used to give the configuration * ID and is required in this case.Endpoints also has a rollout strategy * called RolloutStrategy.MANAGED. When using this, Endpoints fetches the - * latest configuration and does not need to be told the configuration ID. - * In this case, config_id must be omitted. + * latest configuration and does not need the configuration ID. In this + * case, config_id must be omitted. */ configId?: string; /** diff --git a/src/apis/bigquery/v2.ts b/src/apis/bigquery/v2.ts index 65100137967..58b30ed0b53 100644 --- a/src/apis/bigquery/v2.ts +++ b/src/apis/bigquery/v2.ts @@ -1325,6 +1325,8 @@ export namespace bigquery_v2 { * https://cloud.google.com/bigquery/docs/reference/standard-sql/data-manipulation-language * "DELETE": DELETE query; see * https://cloud.google.com/bigquery/docs/reference/standard-sql/data-manipulation-language + * "MERGE": MERGE query; see + * https://cloud.google.com/bigquery/docs/reference/standard-sql/data-manipulation-language * "CREATE_TABLE": CREATE [OR REPLACE] TABLE without AS SELECT. * "CREATE_TABLE_AS_SELECT": CREATE [OR REPLACE] TABLE ... AS * SELECT ... "DROP_TABLE": DROP TABLE query. diff --git a/src/apis/bigquerydatatransfer/v1.ts b/src/apis/bigquerydatatransfer/v1.ts index a7da8209113..dd15269924c 100644 --- a/src/apis/bigquerydatatransfer/v1.ts +++ b/src/apis/bigquerydatatransfer/v1.ts @@ -571,7 +571,7 @@ export namespace bigquerydatatransfer_v1 { * created as part of a regular schedule. For batch transfer runs that are * scheduled manually, this is empty. NOTE: the system might choose to delay * the schedule depending on the current load, so `schedule_time` - * doesn't always matches this. + * doesn't always match this. */ schedule?: string; /** diff --git a/src/apis/chat/v1.ts b/src/apis/chat/v1.ts index 9479e7e720a..1b3e728e0ba 100644 --- a/src/apis/chat/v1.ts +++ b/src/apis/chat/v1.ts @@ -33,8 +33,7 @@ export namespace chat_v1 { /** * Hangouts Chat API * - * Enables bots to fetch information and perform actions in the new Hangouts - * Chat. + * Enables bots to fetch information and perform actions in Hangouts Chat. * * @example * const {google} = require('googleapis'); @@ -197,6 +196,58 @@ export namespace chat_v1 { */ title?: string; } + /** + * Hangouts Chat events. + */ + export interface Schema$DeprecatedEvent { + /** + * The form action data associated with an interactive card that was + * clicked. Only populated for CARD_CLICKED events. See the [Interactive + * Cards guide](/hangouts/chat/how-tos/cards-onclick) for more information. + */ + action?: Schema$FormAction; + /** + * The URL the bot should redirect the user to after they have completed an + * authorization or configuration flow outside of Hangouts Chat. See the + * [Authorizing access to 3p services guide](/hangouts/chat/how-tos/auth-3p) + * for more information. + */ + configCompleteRedirectUrl?: string; + /** + * The timestamp indicating when the event was dispatched. + */ + eventTime?: string; + /** + * The message that triggered the event. + */ + message?: Schema$Message; + /** + * The room or DM in which the event occurred. + */ + space?: Schema$Space; + /** + * The bot-defined key for the thread related to the event. See the + * thread_key field of the `spaces.message.create` request for more + * information. + */ + threadKey?: string; + /** + * A secret value that bots can use to verify if a request is from Google. + * The token is randomly generated by Google, remains static, and can be + * obtained from the Hangouts Chat API configuration page in the Cloud + * Console. Developers can revoke/regenerate it if needed from the same + * page. + */ + token?: string; + /** + * The type of the event. + */ + type?: string; + /** + * The user that triggered the event. + */ + user?: Schema$User; + } /** * A generic empty message that you can re-use to avoid defining duplicated * empty messages in your APIs. A typical example is to use it as the request diff --git a/src/apis/classroom/v1.ts b/src/apis/classroom/v1.ts index d049ffdfdd4..c61560e68ed 100644 --- a/src/apis/classroom/v1.ts +++ b/src/apis/classroom/v1.ts @@ -990,7 +990,7 @@ export namespace classroom_v1 { export interface Schema$ReclaimStudentSubmissionRequest {} /** * An instruction to Classroom to send notifications from the `feed` to the - * provided `destination`. + * provided destination. */ export interface Schema$Registration { /** @@ -1004,7 +1004,7 @@ export namespace classroom_v1 { expiryTime?: string; /** * Specification for the class of notifications that Classroom should - * deliver to the `destination`. + * deliver to the destination. */ feed?: Schema$Feed; /** @@ -5386,24 +5386,25 @@ export namespace classroom_v1 { /** * classroom.registrations.create * @desc Creates a `Registration`, causing Classroom to start sending - * notifications from the provided `feed` to the provided `destination`. - * Returns the created `Registration`. Currently, this will be the same as - * the argument, but with server-assigned fields such as `expiry_time` and - * `id` filled in. Note that any value specified for the `expiry_time` or - * `id` fields will be ignored. While Classroom may validate the - * `destination` and return errors on a best effort basis, it is the - * caller's responsibility to ensure that it exists and that Classroom has - * permission to publish to it. This method may return the following error - * codes: * `PERMISSION_DENIED` if: * the authenticated user does not - * have permission to receive notifications from the requested field; - * or * the credential provided does not include the appropriate scope - * for the requested feed. * another access error is encountered. - * * `INVALID_ARGUMENT` if: * no `destination` is specified, or the - * specified `destination` is not valid; or * no `feed` is - * specified, or the specified `feed` is not valid. * `NOT_FOUND` if: * - * the specified `feed` cannot be located, or the requesting user does not - * have permission to determine whether or not it exists; or * the - * specified `destination` cannot be located, or Classroom has not been + * notifications from the provided `feed` to the destination provided in + * `cloudPubSubTopic`. Returns the created `Registration`. Currently, this + * will be the same as the argument, but with server-assigned fields such as + * `expiry_time` and `id` filled in. Note that any value specified for the + * `expiry_time` or `id` fields will be ignored. While Classroom may + * validate the `cloudPubSubTopic` and return errors on a best effort basis, + * it is the caller's responsibility to ensure that it exists and that + * Classroom has permission to publish to it. This method may return the + * following error codes: * `PERMISSION_DENIED` if: * the authenticated + * user does not have permission to receive notifications from the + * requested field; or * the credential provided does not include the + * appropriate scope for the requested feed. * another access + * error is encountered. * `INVALID_ARGUMENT` if: * no + * `cloudPubsubTopic` is specified, or the specified `cloudPubsubTopic` is + * not valid; or * no `feed` is specified, or the specified `feed` is + * not valid. * `NOT_FOUND` if: * the specified `feed` cannot be + * located, or the requesting user does not have permission to + * determine whether or not it exists; or * the specified + * `cloudPubsubTopic` cannot be located, or Classroom has not been * granted permission to publish to it. * @alias classroom.registrations.create * @memberOf! () diff --git a/src/apis/cloudbuild/v1.ts b/src/apis/cloudbuild/v1.ts index c283f76692b..4dc4265b741 100644 --- a/src/apis/cloudbuild/v1.ts +++ b/src/apis/cloudbuild/v1.ts @@ -31,7 +31,7 @@ export namespace cloudbuild_v1 { } /** - * Cloud Container Builder API + * Cloud Container Builder * * Builds container images in the cloud. * diff --git a/src/apis/cloudiot/v1.ts b/src/apis/cloudiot/v1.ts index fff7c42ac2e..d95dcf4af50 100644 --- a/src/apis/cloudiot/v1.ts +++ b/src/apis/cloudiot/v1.ts @@ -684,12 +684,10 @@ export namespace cloudiot_v1 { export class Resource$Projects$Locations$Registries { root: Cloudiot; devices: Resource$Projects$Locations$Registries$Devices; - groups: Resource$Projects$Locations$Registries$Groups; constructor(root: Cloudiot) { this.root = root; this.getRoot.bind(this); this.devices = new Resource$Projects$Locations$Registries$Devices(root); - this.groups = new Resource$Projects$Locations$Registries$Groups(root); } getRoot() { @@ -2207,917 +2205,4 @@ export namespace cloudiot_v1 { */ numStates?: number; } - - - - export class Resource$Projects$Locations$Registries$Groups { - root: Cloudiot; - devices: Resource$Projects$Locations$Registries$Groups$Devices; - constructor(root: Cloudiot) { - this.root = root; - this.getRoot.bind(this); - this.devices = - new Resource$Projects$Locations$Registries$Groups$Devices(root); - } - - getRoot() { - return this.root; - } - - - /** - * cloudiot.projects.locations.registries.groups.getIamPolicy - * @desc Gets the access control policy for a resource. Returns an empty - * policy if the resource exists and does not have a policy set. - * @alias cloudiot.projects.locations.registries.groups.getIamPolicy - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.resource_ REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. - * @param {().GetIamPolicyRequest} params.resource Request body data - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - getIamPolicy( - params?: - Params$Resource$Projects$Locations$Registries$Groups$Getiampolicy, - options?: MethodOptions): AxiosPromise; - getIamPolicy( - params: - Params$Resource$Projects$Locations$Registries$Groups$Getiampolicy, - options: MethodOptions|BodyResponseCallback, - callback: BodyResponseCallback): void; - getIamPolicy( - params: - Params$Resource$Projects$Locations$Registries$Groups$Getiampolicy, - callback: BodyResponseCallback): void; - getIamPolicy(callback: BodyResponseCallback): void; - getIamPolicy( - paramsOrCallback?: - Params$Resource$Projects$Locations$Registries$Groups$Getiampolicy| - BodyResponseCallback, - optionsOrCallback?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - let params = (paramsOrCallback || {}) as - Params$Resource$Projects$Locations$Registries$Groups$Getiampolicy; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as - Params$Resource$Projects$Locations$Registries$Groups$Getiampolicy; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://cloudiot.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v1/{+resource}:getIamPolicy') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: ['resource'], - pathParams: ['resource'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - - /** - * cloudiot.projects.locations.registries.groups.setIamPolicy - * @desc Sets the access control policy on the specified resource. Replaces - * any existing policy. - * @alias cloudiot.projects.locations.registries.groups.setIamPolicy - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.resource_ REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. - * @param {().SetIamPolicyRequest} params.resource Request body data - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - setIamPolicy( - params?: - Params$Resource$Projects$Locations$Registries$Groups$Setiampolicy, - options?: MethodOptions): AxiosPromise; - setIamPolicy( - params: - Params$Resource$Projects$Locations$Registries$Groups$Setiampolicy, - options: MethodOptions|BodyResponseCallback, - callback: BodyResponseCallback): void; - setIamPolicy( - params: - Params$Resource$Projects$Locations$Registries$Groups$Setiampolicy, - callback: BodyResponseCallback): void; - setIamPolicy(callback: BodyResponseCallback): void; - setIamPolicy( - paramsOrCallback?: - Params$Resource$Projects$Locations$Registries$Groups$Setiampolicy| - BodyResponseCallback, - optionsOrCallback?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - let params = (paramsOrCallback || {}) as - Params$Resource$Projects$Locations$Registries$Groups$Setiampolicy; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as - Params$Resource$Projects$Locations$Registries$Groups$Setiampolicy; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://cloudiot.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v1/{+resource}:setIamPolicy') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: ['resource'], - pathParams: ['resource'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - - /** - * cloudiot.projects.locations.registries.groups.testIamPermissions - * @desc Returns permissions that a caller has on the specified resource. If - * the resource does not exist, this will return an empty set of - * permissions, not a NOT_FOUND error. - * @alias cloudiot.projects.locations.registries.groups.testIamPermissions - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.resource_ REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. - * @param {().TestIamPermissionsRequest} params.resource Request body data - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - testIamPermissions( - params?: - Params$Resource$Projects$Locations$Registries$Groups$Testiampermissions, - options?: MethodOptions): - AxiosPromise; - testIamPermissions( - params: - Params$Resource$Projects$Locations$Registries$Groups$Testiampermissions, - options: MethodOptions| - BodyResponseCallback, - callback: BodyResponseCallback): - void; - testIamPermissions( - params: - Params$Resource$Projects$Locations$Registries$Groups$Testiampermissions, - callback: BodyResponseCallback): - void; - testIamPermissions( - callback: BodyResponseCallback): - void; - testIamPermissions( - paramsOrCallback?: - Params$Resource$Projects$Locations$Registries$Groups$Testiampermissions| - BodyResponseCallback, - optionsOrCallback?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - let params = (paramsOrCallback || {}) as - Params$Resource$Projects$Locations$Registries$Groups$Testiampermissions; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as - Params$Resource$Projects$Locations$Registries$Groups$Testiampermissions; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://cloudiot.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v1/{+resource}:testIamPermissions') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: ['resource'], - pathParams: ['resource'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest( - parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - } - - export interface Params$Resource$Projects$Locations$Registries$Groups$Getiampolicy { - /** - * Auth client or API Key for the request - */ - auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; - - /** - * REQUIRED: The resource for which the policy is being requested. See the - * operation documentation for the appropriate value for this field. - */ - resource?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$GetIamPolicyRequest; - } - export interface Params$Resource$Projects$Locations$Registries$Groups$Setiampolicy { - /** - * Auth client or API Key for the request - */ - auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; - - /** - * REQUIRED: The resource for which the policy is being specified. See the - * operation documentation for the appropriate value for this field. - */ - resource?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$SetIamPolicyRequest; - } - export interface Params$Resource$Projects$Locations$Registries$Groups$Testiampermissions { - /** - * Auth client or API Key for the request - */ - auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; - - /** - * REQUIRED: The resource for which the policy detail is being requested. - * See the operation documentation for the appropriate value for this field. - */ - resource?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$TestIamPermissionsRequest; - } - - export class Resource$Projects$Locations$Registries$Groups$Devices { - root: Cloudiot; - configVersions: - Resource$Projects$Locations$Registries$Groups$Devices$Configversions; - states: Resource$Projects$Locations$Registries$Groups$Devices$States; - constructor(root: Cloudiot) { - this.root = root; - this.getRoot.bind(this); - this.configVersions = - new Resource$Projects$Locations$Registries$Groups$Devices$Configversions( - root); - this.states = - new Resource$Projects$Locations$Registries$Groups$Devices$States( - root); - } - - getRoot() { - return this.root; - } - - - /** - * cloudiot.projects.locations.registries.groups.devices.delete - * @desc Deletes a device. - * @alias cloudiot.projects.locations.registries.groups.devices.delete - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.name The name of the device. For example, `projects/p0/locations/us-central1/registries/registry0/devices/device0` or `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`. - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - delete( - params?: - Params$Resource$Projects$Locations$Registries$Groups$Devices$Delete, - options?: MethodOptions): AxiosPromise; - delete( - params: - Params$Resource$Projects$Locations$Registries$Groups$Devices$Delete, - options: MethodOptions|BodyResponseCallback, - callback: BodyResponseCallback): void; - delete( - params: - Params$Resource$Projects$Locations$Registries$Groups$Devices$Delete, - callback: BodyResponseCallback): void; - delete(callback: BodyResponseCallback): void; - delete( - paramsOrCallback?: - Params$Resource$Projects$Locations$Registries$Groups$Devices$Delete| - BodyResponseCallback, - optionsOrCallback?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - let params = (paramsOrCallback || {}) as - Params$Resource$Projects$Locations$Registries$Groups$Devices$Delete; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as - Params$Resource$Projects$Locations$Registries$Groups$Devices$Delete; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://cloudiot.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE' - }, - options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - - /** - * cloudiot.projects.locations.registries.groups.devices.get - * @desc Gets details about a device. - * @alias cloudiot.projects.locations.registries.groups.devices.get - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string=} params.fieldMask The fields of the `Device` resource to be returned in the response. If the field mask is unset or empty, all fields are returned. - * @param {string} params.name The name of the device. For example, `projects/p0/locations/us-central1/registries/registry0/devices/device0` or `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`. - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - get(params?: - Params$Resource$Projects$Locations$Registries$Groups$Devices$Get, - options?: MethodOptions): AxiosPromise; - get(params: - Params$Resource$Projects$Locations$Registries$Groups$Devices$Get, - options: MethodOptions|BodyResponseCallback, - callback: BodyResponseCallback): void; - get(params: - Params$Resource$Projects$Locations$Registries$Groups$Devices$Get, - callback: BodyResponseCallback): void; - get(callback: BodyResponseCallback): void; - get(paramsOrCallback?: - Params$Resource$Projects$Locations$Registries$Groups$Devices$Get| - BodyResponseCallback, - optionsOrCallback?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - let params = (paramsOrCallback || {}) as - Params$Resource$Projects$Locations$Registries$Groups$Devices$Get; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as - Params$Resource$Projects$Locations$Registries$Groups$Devices$Get; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://cloudiot.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET' - }, - options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - - /** - * cloudiot.projects.locations.registries.groups.devices.modifyCloudToDeviceConfig - * @desc Modifies the configuration for the device, which is eventually sent - * from the Cloud IoT Core servers. Returns the modified configuration - * version and its metadata. - * @alias - * cloudiot.projects.locations.registries.groups.devices.modifyCloudToDeviceConfig - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.name The name of the device. For example, `projects/p0/locations/us-central1/registries/registry0/devices/device0` or `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`. - * @param {().ModifyCloudToDeviceConfigRequest} params.resource Request body data - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - modifyCloudToDeviceConfig( - params?: - Params$Resource$Projects$Locations$Registries$Groups$Devices$Modifycloudtodeviceconfig, - options?: MethodOptions): AxiosPromise; - modifyCloudToDeviceConfig( - params: - Params$Resource$Projects$Locations$Registries$Groups$Devices$Modifycloudtodeviceconfig, - options: MethodOptions|BodyResponseCallback, - callback: BodyResponseCallback): void; - modifyCloudToDeviceConfig( - params: - Params$Resource$Projects$Locations$Registries$Groups$Devices$Modifycloudtodeviceconfig, - callback: BodyResponseCallback): void; - modifyCloudToDeviceConfig( - callback: BodyResponseCallback): void; - modifyCloudToDeviceConfig( - paramsOrCallback?: - Params$Resource$Projects$Locations$Registries$Groups$Devices$Modifycloudtodeviceconfig| - BodyResponseCallback, - optionsOrCallback?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - let params = (paramsOrCallback || {}) as - Params$Resource$Projects$Locations$Registries$Groups$Devices$Modifycloudtodeviceconfig; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as - Params$Resource$Projects$Locations$Registries$Groups$Devices$Modifycloudtodeviceconfig; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://cloudiot.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v1/{+name}:modifyCloudToDeviceConfig') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - - /** - * cloudiot.projects.locations.registries.groups.devices.patch - * @desc Updates a device. - * @alias cloudiot.projects.locations.registries.groups.devices.patch - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.name The resource path name. For example, `projects/p1/locations/us-central1/registries/registry0/devices/dev0` or `projects/p1/locations/us-central1/registries/registry0/devices/{num_id}`. When `name` is populated as a response from the service, it always ends in the device numeric ID. - * @param {string=} params.updateMask Only updates the `device` fields indicated by this mask. The field mask must not be empty, and it must not contain fields that are immutable or only set by the server. Mutable top-level fields: `credentials`, `blocked`, and `metadata` - * @param {().Device} params.resource Request body data - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - patch( - params?: - Params$Resource$Projects$Locations$Registries$Groups$Devices$Patch, - options?: MethodOptions): AxiosPromise; - patch( - params: - Params$Resource$Projects$Locations$Registries$Groups$Devices$Patch, - options: MethodOptions|BodyResponseCallback, - callback: BodyResponseCallback): void; - patch( - params: - Params$Resource$Projects$Locations$Registries$Groups$Devices$Patch, - callback: BodyResponseCallback): void; - patch(callback: BodyResponseCallback): void; - patch( - paramsOrCallback?: - Params$Resource$Projects$Locations$Registries$Groups$Devices$Patch| - BodyResponseCallback, - optionsOrCallback?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - let params = (paramsOrCallback || {}) as - Params$Resource$Projects$Locations$Registries$Groups$Devices$Patch; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as - Params$Resource$Projects$Locations$Registries$Groups$Devices$Patch; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://cloudiot.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH' - }, - options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - } - - export interface Params$Resource$Projects$Locations$Registries$Groups$Devices$Delete { - /** - * Auth client or API Key for the request - */ - auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; - - /** - * The name of the device. For example, - * `projects/p0/locations/us-central1/registries/registry0/devices/device0` - * or - * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`. - */ - name?: string; - } - export interface Params$Resource$Projects$Locations$Registries$Groups$Devices$Get { - /** - * Auth client or API Key for the request - */ - auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; - - /** - * The fields of the `Device` resource to be returned in the response. If - * the field mask is unset or empty, all fields are returned. - */ - fieldMask?: string; - /** - * The name of the device. For example, - * `projects/p0/locations/us-central1/registries/registry0/devices/device0` - * or - * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`. - */ - name?: string; - } - export interface Params$Resource$Projects$Locations$Registries$Groups$Devices$Modifycloudtodeviceconfig { - /** - * Auth client or API Key for the request - */ - auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; - - /** - * The name of the device. For example, - * `projects/p0/locations/us-central1/registries/registry0/devices/device0` - * or - * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`. - */ - name?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$ModifyCloudToDeviceConfigRequest; - } - export interface Params$Resource$Projects$Locations$Registries$Groups$Devices$Patch { - /** - * Auth client or API Key for the request - */ - auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; - - /** - * The resource path name. For example, - * `projects/p1/locations/us-central1/registries/registry0/devices/dev0` or - * `projects/p1/locations/us-central1/registries/registry0/devices/{num_id}`. - * When `name` is populated as a response from the service, it always ends - * in the device numeric ID. - */ - name?: string; - /** - * Only updates the `device` fields indicated by this mask. The field mask - * must not be empty, and it must not contain fields that are immutable or - * only set by the server. Mutable top-level fields: `credentials`, - * `blocked`, and `metadata` - */ - updateMask?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$Device; - } - - export class - Resource$Projects$Locations$Registries$Groups$Devices$Configversions { - root: Cloudiot; - constructor(root: Cloudiot) { - this.root = root; - this.getRoot.bind(this); - } - - getRoot() { - return this.root; - } - - - /** - * cloudiot.projects.locations.registries.groups.devices.configVersions.list - * @desc Lists the last few versions of the device configuration in - * descending order (i.e.: newest first). - * @alias - * cloudiot.projects.locations.registries.groups.devices.configVersions.list - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.name The name of the device. For example, `projects/p0/locations/us-central1/registries/registry0/devices/device0` or `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`. - * @param {integer=} params.numVersions The number of versions to list. Versions are listed in decreasing order of the version number. The maximum number of versions retained is 10. If this value is zero, it will return all the versions available. - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - list( - params?: - Params$Resource$Projects$Locations$Registries$Groups$Devices$Configversions$List, - options?: MethodOptions): - AxiosPromise; - list( - params: - Params$Resource$Projects$Locations$Registries$Groups$Devices$Configversions$List, - options: MethodOptions| - BodyResponseCallback, - callback: - BodyResponseCallback): - void; - list( - params: - Params$Resource$Projects$Locations$Registries$Groups$Devices$Configversions$List, - callback: - BodyResponseCallback): - void; - list(callback: - BodyResponseCallback): - void; - list( - paramsOrCallback?: - Params$Resource$Projects$Locations$Registries$Groups$Devices$Configversions$List| - BodyResponseCallback, - optionsOrCallback?: MethodOptions| - BodyResponseCallback, - callback?: - BodyResponseCallback): - void|AxiosPromise { - let params = (paramsOrCallback || {}) as - Params$Resource$Projects$Locations$Registries$Groups$Devices$Configversions$List; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as - Params$Resource$Projects$Locations$Registries$Groups$Devices$Configversions$List; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://cloudiot.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v1/{+name}/configVersions') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'GET' - }, - options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest( - parameters, callback); - } else { - return createAPIRequest( - parameters); - } - } - } - - export interface Params$Resource$Projects$Locations$Registries$Groups$Devices$Configversions$List { - /** - * Auth client or API Key for the request - */ - auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; - - /** - * The name of the device. For example, - * `projects/p0/locations/us-central1/registries/registry0/devices/device0` - * or - * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`. - */ - name?: string; - /** - * The number of versions to list. Versions are listed in decreasing order - * of the version number. The maximum number of versions retained is 10. If - * this value is zero, it will return all the versions available. - */ - numVersions?: number; - } - - - export class Resource$Projects$Locations$Registries$Groups$Devices$States { - root: Cloudiot; - constructor(root: Cloudiot) { - this.root = root; - this.getRoot.bind(this); - } - - getRoot() { - return this.root; - } - - - /** - * cloudiot.projects.locations.registries.groups.devices.states.list - * @desc Lists the last few versions of the device state in descending order - * (i.e.: newest first). - * @alias cloudiot.projects.locations.registries.groups.devices.states.list - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.name The name of the device. For example, `projects/p0/locations/us-central1/registries/registry0/devices/device0` or `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`. - * @param {integer=} params.numStates The number of states to list. States are listed in descending order of update time. The maximum number of states retained is 10. If this value is zero, it will return all the states available. - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - list( - params?: - Params$Resource$Projects$Locations$Registries$Groups$Devices$States$List, - options?: MethodOptions): AxiosPromise; - list( - params: - Params$Resource$Projects$Locations$Registries$Groups$Devices$States$List, - options: MethodOptions| - BodyResponseCallback, - callback: BodyResponseCallback): void; - list( - params: - Params$Resource$Projects$Locations$Registries$Groups$Devices$States$List, - callback: BodyResponseCallback): void; - list(callback: BodyResponseCallback): void; - list( - paramsOrCallback?: - Params$Resource$Projects$Locations$Registries$Groups$Devices$States$List| - BodyResponseCallback, - optionsOrCallback?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - let params = (paramsOrCallback || {}) as - Params$Resource$Projects$Locations$Registries$Groups$Devices$States$List; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as - Params$Resource$Projects$Locations$Registries$Groups$Devices$States$List; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://cloudiot.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v1/{+name}/states') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'GET' - }, - options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - } - - export interface Params$Resource$Projects$Locations$Registries$Groups$Devices$States$List { - /** - * Auth client or API Key for the request - */ - auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; - - /** - * The name of the device. For example, - * `projects/p0/locations/us-central1/registries/registry0/devices/device0` - * or - * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`. - */ - name?: string; - /** - * The number of states to list. States are listed in descending order of - * update time. The maximum number of states retained is 10. If this value - * is zero, it will return all the states available. - */ - numStates?: number; - } } diff --git a/src/apis/cloudresourcemanager/v1.ts b/src/apis/cloudresourcemanager/v1.ts index 9385a1467a7..9b9355b30a7 100644 --- a/src/apis/cloudresourcemanager/v1.ts +++ b/src/apis/cloudresourcemanager/v1.ts @@ -428,6 +428,13 @@ export namespace cloudresourcemanager_v1 { * that matches the value specified in this `Constraint`. */ suggestedValue?: string; + /** + * Indicates whether subtrees of Cloud Resource Manager resource hierarchy + * can be used in `Policy.allowed_values` and `Policy.denied_values`. For + * example, `"under:folders/123"` would match any resource under + * the 'folders/123' folder. + */ + supportsUnder?: boolean; } /** * The response message for Liens.ListLiens. @@ -477,19 +484,29 @@ export namespace cloudresourcemanager_v1 { } /** * Used in `policy_type` to specify how `list_policy` behaves at this - * resource. A `ListPolicy` can define specific values that are allowed or - * denied by setting either the `allowed_values` or `denied_values` fields. It - * can also be used to allow or deny all values, by setting the `all_values` - * field. If `all_values` is `ALL_VALUES_UNSPECIFIED`, exactly one of - * `allowed_values` or `denied_values` must be set (attempting to set both or - * neither will result in a failed request). If `all_values` is set to either - * `ALLOW` or `DENY`, `allowed_values` and `denied_values` must be unset. + * resource. `ListPolicy` can define specific values and subtrees of Cloud + * Resource Manager resource hierarchy (`Organizations`, `Folders`, + * `Projects`) that are allowed or denied by setting the `allowed_values` and + * `denied_values` fields. This is achieved by using the `under:` and optional + * `is:` prefixes. The `under:` prefix is used to denote resource subtree + * values. The `is:` prefix is used to denote specific values, and is required + * only if the value contains a ":". Values prefixed with + * "is:" are treated the same as values with no prefix. Ancestry + * subtrees must be in one of the following formats: - + * “projects/<project-id>”, e.g. “projects/tokyo-rain-123” - + * “folders/<folder-id>”, e.g. “folders/1234” - + * “organizations/<organization-id>”, e.g. “organizations/1234” The + * `supports_under` field of the associated `Constraint` defines whether + * ancestry prefixes can be used. You can set `allowed_values` and + * `denied_values` in the same `Policy` if `all_values` is + * `ALL_VALUES_UNSPECIFIED`. `ALLOW` or `DENY` are used to allow or deny all + * values. If `all_values` is set to either `ALLOW` or `DENY`, + * `allowed_values` and `denied_values` must be unset. */ export interface Schema$ListPolicy { /** - * List of values allowed at this resource. Can only be set if no values - * are set for `denied_values` and `all_values` is set to - * `ALL_VALUES_UNSPECIFIED`. + * List of values allowed at this resource. Can only be set if `all_values` + * is set to `ALL_VALUES_UNSPECIFIED`. */ allowedValues?: string[]; /** @@ -497,9 +514,8 @@ export namespace cloudresourcemanager_v1 { */ allValues?: string; /** - * List of values denied at this resource. Can only be set if no values are - * set for `allowed_values` and `all_values` is set to - * `ALL_VALUES_UNSPECIFIED`. + * List of values denied at this resource. Can only be set if `all_values` + * is set to `ALL_VALUES_UNSPECIFIED`. */ deniedValues?: string[]; /** @@ -522,41 +538,51 @@ export namespace cloudresourcemanager_v1 { * `Policy` is applied to a project below the Organization that has * `inherit_from_parent` set to `false` and field all_values set to DENY, * then an attempt to activate any API will be denied. The following - * examples demonstrate different possible layerings: Example 1 (no - * inherited values): `organizations/foo` has a `Policy` with values: - * {allowed_values: “E1” allowed_values:”E2”} ``projects/bar`` has - * `inherit_from_parent` `false` and values: {allowed_values: - * "E3" allowed_values: "E4"} The accepted values at - * `organizations/foo` are `E1`, `E2`. The accepted values at `projects/bar` - * are `E3`, and `E4`. Example 2 (inherited values): `organizations/foo` - * has a `Policy` with values: {allowed_values: “E1” - * allowed_values:”E2”} `projects/bar` has a `Policy` with values: {value: - * “E3” value: ”E4” inherit_from_parent: true} The accepted values at - * `organizations/foo` are `E1`, `E2`. The accepted values at `projects/bar` - * are `E1`, `E2`, `E3`, and `E4`. Example 3 (inheriting both allowed and - * denied values): `organizations/foo` has a `Policy` with values: - * {allowed_values: "E1" allowed_values: "E2"} - * `projects/bar` has a `Policy` with: {denied_values: "E1"} - * The accepted values at `organizations/foo` are `E1`, `E2`. The value - * accepted at `projects/bar` is `E2`. Example 4 (RestoreDefault): + * examples demonstrate different possible layerings for `projects/bar` + * parented by `organizations/foo`: Example 1 (no inherited values): * `organizations/foo` has a `Policy` with values: {allowed_values: “E1” - * allowed_values:”E2”} `projects/bar` has a `Policy` with values: - * {RestoreDefault: {}} The accepted values at `organizations/foo` are `E1`, - * `E2`. The accepted values at `projects/bar` are either all or none - * depending on the value of `constraint_default` (if `ALLOW`, all; if - * `DENY`, none). Example 5 (no policy inherits parent policy): - * `organizations/foo` has no `Policy` set. `projects/bar` has no `Policy` - * set. The accepted values at both levels are either all or none depending - * on the value of `constraint_default` (if `ALLOW`, all; if `DENY`, none). - * Example 6 (ListConstraint allowing all): `organizations/foo` has a - * `Policy` with values: {allowed_values: “E1” allowed_values: ”E2”} - * `projects/bar` has a `Policy` with: {all: ALLOW} The accepted values - * at `organizations/foo` are `E1`, E2`. Any value is accepted at + * allowed_values:”E2”} `projects/bar` has `inherit_from_parent` `false` + * and values: {allowed_values: "E3" allowed_values: + * "E4"} The accepted values at `organizations/foo` are `E1`, + * `E2`. The accepted values at `projects/bar` are `E3`, and `E4`. Example + * 2 (inherited values): `organizations/foo` has a `Policy` with values: + * {allowed_values: “E1” allowed_values:”E2”} `projects/bar` has a + * `Policy` with values: {value: “E3” value: ”E4” inherit_from_parent: + * true} The accepted values at `organizations/foo` are `E1`, `E2`. The + * accepted values at `projects/bar` are `E1`, `E2`, `E3`, and `E4`. Example + * 3 (inheriting both allowed and denied values): `organizations/foo` has + * a `Policy` with values: {allowed_values: "E1" + * allowed_values: "E2"} `projects/bar` has a `Policy` with: + * {denied_values: "E1"} The accepted values at + * `organizations/foo` are `E1`, `E2`. The value accepted at `projects/bar` + * is `E2`. Example 4 (RestoreDefault): `organizations/foo` has a + * `Policy` with values: {allowed_values: “E1” allowed_values:”E2”} + * `projects/bar` has a `Policy` with values: {RestoreDefault: {}} The + * accepted values at `organizations/foo` are `E1`, `E2`. The accepted + * values at `projects/bar` are either all or none depending on the value of + * `constraint_default` (if `ALLOW`, all; if `DENY`, none). Example 5 (no + * policy inherits parent policy): `organizations/foo` has no `Policy` + * set. `projects/bar` has no `Policy` set. The accepted values at both + * levels are either all or none depending on the value of + * `constraint_default` (if `ALLOW`, all; if `DENY`, none). Example 6 + * (ListConstraint allowing all): `organizations/foo` has a `Policy` with + * values: {allowed_values: “E1” allowed_values: ”E2”} `projects/bar` + * has a `Policy` with: {all: ALLOW} The accepted values at + * `organizations/foo` are `E1`, E2`. Any value is accepted at * `projects/bar`. Example 7 (ListConstraint allowing none): * `organizations/foo` has a `Policy` with values: {allowed_values: “E1” * allowed_values: ”E2”} `projects/bar` has a `Policy` with: {all: * DENY} The accepted values at `organizations/foo` are `E1`, E2`. No value - * is accepted at `projects/bar`. + * is accepted at `projects/bar`. Example 10 (allowed and denied subtrees + * of Resource Manager hierarchy): Given the following resource hierarchy + * O1->{F1, F2}; F1->{P1}; F2->{P2, P3}, `organizations/foo` has + * a `Policy` with values: {allowed_values: + * "under:organizations/O1"} `projects/bar` has a `Policy` with: + * {allowed_values: "under:projects/P3"} {denied_values: + * "under:folders/F2"} The accepted values at `organizations/foo` + * are `organizations/O1`, `folders/F1`, `folders/F2`, `projects/P1`, + * `projects/P2`, `projects/P3`. The accepted values at `projects/bar` are + * `organizations/O1`, `folders/F1`, `projects/P1`. */ inheritFromParent?: boolean; /** @@ -1171,7 +1197,8 @@ export namespace cloudresourcemanager_v1 { * @desc Gets the effective `Policy` on a resource. This is the result of * merging `Policies` in the resource hierarchy. The returned `Policy` will * not have an `etag`set because it is a computed `Policy` across multiple - * resources. + * resources. Subtrees of Resource Manager resource hierarchy with 'under:' + * prefix will not be expanded. * @example * * // BEFORE RUNNING: * // --------------- @@ -2195,6 +2222,70 @@ export namespace cloudresourcemanager_v1 { } + /** + * cloudresourcemanager.liens.get + * @desc Retrieve a Lien by `name`. Callers of this method will require + * permission on the `parent` resource. For example, a Lien with a `parent` + * of `projects/1234` requires permission requires permission + * `resourcemanager.projects.get` or `resourcemanager.projects.updateLiens`. + * @alias cloudresourcemanager.liens.get + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.name The name/identifier of the Lien. + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + get(params?: Params$Resource$Liens$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Liens$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Liens$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Liens$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as Params$Resource$Liens$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Liens$Get; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET' + }, + options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + /** * cloudresourcemanager.liens.list * @desc List all Liens applied to the `parent` resource. Callers of this @@ -2351,6 +2442,17 @@ export namespace cloudresourcemanager_v1 { */ name?: string; } + export interface Params$Resource$Liens$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name/identifier of the Lien. + */ + name?: string; + } export interface Params$Resource$Liens$List { /** * Auth client or API Key for the request @@ -2771,7 +2873,8 @@ export namespace cloudresourcemanager_v1 { * @desc Gets the effective `Policy` on a resource. This is the result of * merging `Policies` in the resource hierarchy. The returned `Policy` will * not have an `etag`set because it is a computed `Policy` across multiple - * resources. + * resources. Subtrees of Resource Manager resource hierarchy with 'under:' + * prefix will not be expanded. * @example * * // BEFORE RUNNING: * // --------------- @@ -4812,7 +4915,8 @@ export namespace cloudresourcemanager_v1 { * @desc Gets the effective `Policy` on a resource. This is the result of * merging `Policies` in the resource hierarchy. The returned `Policy` will * not have an `etag`set because it is a computed `Policy` across multiple - * resources. + * resources. Subtrees of Resource Manager resource hierarchy with 'under:' + * prefix will not be expanded. * @example * * // BEFORE RUNNING: * // --------------- diff --git a/src/apis/cloudresourcemanager/v2.ts b/src/apis/cloudresourcemanager/v2.ts index 6e64ad56429..3d12243f1da 100644 --- a/src/apis/cloudresourcemanager/v2.ts +++ b/src/apis/cloudresourcemanager/v2.ts @@ -370,13 +370,17 @@ export namespace cloudresourcemanager_v2 { * criteria is specified then all accessible folders will be returned. Query * expressions can be used to restrict results based upon displayName, * lifecycleState and parent, where the operators `=`, `NOT`, `AND` and `OR` - * can be used along with the suffix wildcard symbol `*`. Some example - * queries are: |Query | Description| |----- | -----------| - * |displayName=Test* | Folders whose display name starts with - * "Test". |lifecycleState=ACTIVE | Folders whose lifecycleState - * is ACTIVE. |parent=folders/123 | Folders whose parent is - * "folders/123". |parent=folders/123 AND lifecycleState=ACTIVE | - * Active folders whose parent is "folders/123".| + * can be used along with the suffix wildcard symbol `*`. The displayName + * field in a query expression should use escaped quotes for values that + * include whitespace to prevent unexpected behavior. Some example queries + * are: |Query | Description| |----- | -----------| |displayName=Test* | + * Folders whose display name starts with "Test".| + * |lifecycleState=ACTIVE | Folders whose lifecycleState is ACTIVE.| + * |parent=folders/123 | Folders whose parent is "folders/123".| + * |parent=folders/123 AND lifecycleState=ACTIVE | Active folders whose + * parent is "folders/123".| |displayName=\\"Test + * String\\"|Folders whose display name includes both "Test" + * and "String".| */ query?: string; } @@ -521,11 +525,11 @@ export namespace cloudresourcemanager_v2 { * headroom when moving folders that contain deleted folders. + The addition * of the Folder must not cause the total number of Folders under its parent * to exceed 100. If the operation fails due to a folder constraint - * violation, a PreconditionFailure explaining the violation will be - * returned. If the failure occurs synchronously then the - * PreconditionFailure will be returned via the Status.details field and if - * it occurs asynchronously then the PreconditionFailure will be returned - * via the the Operation.error field. The caller must have + * violation, some errors may be returned by the CreateFolder request, with + * status code FAILED_PRECONDITION and an error description. Other folder + * constraint violations will be communicated in the Operation, with the + * specific PreconditionFailure returned via the details list in the + * Operation.error field. The caller must have * `resourcemanager.folders.create` permission on the identified parent. * @alias cloudresourcemanager.folders.create * @memberOf! () diff --git a/src/apis/cloudresourcemanager/v2beta1.ts b/src/apis/cloudresourcemanager/v2beta1.ts index ed6cba2e499..47b78aa0cb6 100644 --- a/src/apis/cloudresourcemanager/v2beta1.ts +++ b/src/apis/cloudresourcemanager/v2beta1.ts @@ -370,14 +370,18 @@ export namespace cloudresourcemanager_v2beta1 { * criteria is specified then all accessible folders will be returned. Query * expressions can be used to restrict results based upon displayName, * lifecycleState and parent, where the operators `=`, `NOT`, `AND` and `OR` - * can be used along with the suffix wildcard symbol `*`. Some example - * queries are: |Query | Description| |----- | -----------| + * can be used along with the suffix wildcard symbol `*`. The displayName + * field in a query expression should use escaped quotes for values that + * include whitespace to prevent unexpected behavior. Some example queries + * are: |Query | Description| |----- | -----------| * |displayName=Test*|Folders whose display name starts with * "Test".| |lifecycleState=ACTIVE|Folders whose lifecycleState is * ACTIVE.| |parent=folders/123|Folders whose parent is * "folders/123".| |parent=folders/123 AND * lifecycleState=ACTIVE|Active folders whose parent is - * "folders/123".| + * "folders/123".| |displayName=\\"Test + * String\\"|Folders whose display name includes both "Test" + * and "String".| */ query?: string; } diff --git a/src/apis/cloudtasks/v2beta2.ts b/src/apis/cloudtasks/v2beta2.ts index 43487aace5c..51b69dd3ffb 100644 --- a/src/apis/cloudtasks/v2beta2.ts +++ b/src/apis/cloudtasks/v2beta2.ts @@ -33,8 +33,7 @@ export namespace cloudtasks_v2beta2 { /** * Cloud Tasks API * - * Manages the execution of large numbers of distributed requests. Cloud Tasks - * is in Alpha. + * Manages the execution of large numbers of distributed requests. * * @example * const {google} = require('googleapis'); @@ -423,8 +422,9 @@ export namespace cloudtasks_v2beta2 { */ leaseDuration?: string; /** - * The maximum number of tasks to lease. The maximum that can be requested - * is 1000. + * The maximum number of tasks to lease. The system will make a best effort + * to return as close to as `max_tasks` as possible. The largest that + * `max_tasks` can be is 1000. */ maxTasks?: number; /** diff --git a/src/apis/compute/alpha.ts b/src/apis/compute/alpha.ts index 07579a2fea2..cd5f137a754 100644 --- a/src/apis/compute/alpha.ts +++ b/src/apis/compute/alpha.ts @@ -2850,6 +2850,15 @@ export namespace compute_alpha { * v1.regionForwardingRules ==) */ export interface Schema$ForwardingRule { + /** + * This field is used along with the backend_service field for internal load + * balancing or with the target field for internal TargetInstance. This + * field cannot be used with port or portRange fields. When the load + * balancing scheme is INTERNAL and protocol is TCP/UDP, specify this field + * to allow packets addressed to any ports will be forwarded to the backends + * configured with this forwarding rule. + */ + allPorts?: boolean; /** * This field is not used for external load balancing. For internal load * balancing, this field identifies the BackendService resource to receive @@ -6655,7 +6664,7 @@ export namespace compute_alpha { warning?: any; } /** - * Next available tag: 12 + * A Managed Instance resource. */ export interface Schema$ManagedInstance { /** @@ -9418,6 +9427,17 @@ export namespace compute_alpha { * configured to use NAT. */ autoAllocatedNatIps?: string[]; + /** + * Timeout (in seconds) for ICMP connections. Defaults to 30s if not set. + */ + icmpIdleTimeoutSec?: number; + /** + * Minimum number of ports allocated to a VM from this NAT config. If not + * set, a default number of ports is allocated to a VM. This gets rounded up + * to the nearest power of 2. Eg. if the value of this field is 50, at least + * 64 ports will be allocated to a VM. + */ + minPortsPerVm?: number; /** * Unique name of this Nat service. The name must be 1-63 characters long * and comply with RFC1035. @@ -9447,6 +9467,20 @@ export namespace compute_alpha { * SubnetworkIpRangeToNatOption above. */ subnetworks?: Schema$RouterNatSubnetworkToNat[]; + /** + * Timeout (in seconds) for TCP established connections. Defaults to 1200s + * if not set. + */ + tcpEstablishedIdleTimeoutSec?: number; + /** + * Timeout (in seconds) for TCP transitory connections. Defaults to 30s if + * not set. + */ + tcpTransitoryIdleTimeoutSec?: number; + /** + * Timeout (in seconds) for UDP connections. Defaults to 30s if not set. + */ + udpIdleTimeoutSec?: number; } /** * Defines the IP ranges that want to use NAT for a subnetwork. @@ -12041,17 +12075,6 @@ export namespace compute_alpha { * client when the VPN gateway is created. */ network?: string; - /** - * The redundancy mode configured for this VPN gateway. Possible values are - * ACTIVE_ACTIVE and NONE. If set to ACTIVE_ACTIVE, two VPN interfaces are - * created thereby providing higher availability. If set to NONE, only one - * interface is created with a lower availability SLA. If this field is - * specified, either 2 or 1 external IP addresses (depending on the value of - * specified redundancy) are automatically allocated for use with this VPN - * gateway, and incoming traffic on the external addresses to ports ESP, - * UDP:500 and UDP:4500 are automatically forwarded to this gateway. - */ - redundancy?: string; /** * [Output Only] URL of the region where the VPN gateway resides. */ @@ -12263,15 +12286,13 @@ export namespace compute_alpha { /** * URL of the VPN gateway with which this VPN tunnel is associated. Provided * by the client when the VPN tunnel is created. This must be used (instead - * of target_vpn_gateway) if a VPN gateway resource is created with - * redundancy. VPN gateway resource provides a way to create a highly - * available VPN setup. + * of target_vpn_gateway) if a High Availability VPN gateway resource is + * created. */ vpnGateway?: string; /** * The interface ID of the VPN gateway with which this VPN tunnel is - * associated. If the VPN gateway has redundancy other than NONE, this field - * is required to identify which interface of the VPN gateway to use. + * associated. */ vpnGatewayInterface?: number; } diff --git a/src/apis/compute/beta.ts b/src/apis/compute/beta.ts index 4d459387f93..6513281f85d 100644 --- a/src/apis/compute/beta.ts +++ b/src/apis/compute/beta.ts @@ -76,6 +76,7 @@ export namespace compute_beta { licenseCodes: Resource$Licensecodes; licenses: Resource$Licenses; machineTypes: Resource$Machinetypes; + networkEndpointGroups: Resource$Networkendpointgroups; networks: Resource$Networks; nodeGroups: Resource$Nodegroups; nodeTemplates: Resource$Nodetemplates; @@ -140,6 +141,7 @@ export namespace compute_beta { this.licenseCodes = new Resource$Licensecodes(this); this.licenses = new Resource$Licenses(this); this.machineTypes = new Resource$Machinetypes(this); + this.networkEndpointGroups = new Resource$Networkendpointgroups(this); this.networks = new Resource$Networks(this); this.nodeGroups = new Resource$Nodegroups(this); this.nodeTemplates = new Resource$Nodetemplates(this); @@ -431,12 +433,25 @@ export namespace compute_beta { * dash. */ name?: string; + /** + * The URL of the network in which to reserve the address. This field can + * only be used with INTERNAL type with VPC_PEERING purpose. + */ + network?: string; /** * This signifies the networking tier used for configuring this Address and * can only take the following values: PREMIUM , STANDARD. If this field is * not specified, it is assumed to be PREMIUM. */ networkTier?: string; + /** + * The prefix length if the resource reprensents an IP range. + */ + prefixLength?: number; + /** + * The purpose of resource, only used with INTERNAL type. + */ + purpose?: string; /** * [Output Only] URL of the region where the regional address resides. This * field is not applicable to global addresses. You must specify this field @@ -1135,6 +1150,14 @@ export namespace compute_beta { * This cannot be used for internal load balancing. */ maxConnections?: number; + /** + * The max number of simultaneous connections that a single backend network + * endpoint can handle. This is used to calculate the capacity of the group. + * Can be used in either CONNECTION or UTILIZATION balancing modes. For + * CONNECTION mode, either maxConnections or maxConnectionsPerEndpoint must + * be set. This cannot be used for internal load balancing. + */ + maxConnectionsPerEndpoint?: number; /** * The max number of simultaneous connections that a single backend instance * can handle. This is used to calculate the capacity of the group. Can be @@ -1150,6 +1173,14 @@ export namespace compute_beta { * used for internal load balancing. */ maxRate?: number; + /** + * The max requests per second (RPS) that a single backend network endpoint + * can handle. This is used to calculate the capacity of the group. Can be + * used in either balancing mode. For RATE mode, either maxRate or + * maxRatePerEndpoint must be set. This cannot be used for internal load + * balancing. + */ + maxRatePerEndpoint?: number; /** * The max requests per second (RPS) that a single backend instance can * handle. This is used to calculate the capacity of the group. Can be used @@ -1512,6 +1543,9 @@ export namespace compute_beta { */ warning?: any; } + export interface Schema$BackendServiceReference { + backendService?: string; + } export interface Schema$BackendServicesScopedList { /** * A list of BackendServices contained in this scope. @@ -2823,6 +2857,9 @@ export namespace compute_beta { */ warning?: any; } + export interface Schema$ForwardingRuleReference { + forwardingRule?: string; + } export interface Schema$ForwardingRulesScopedList { /** * A list of forwarding rules contained in this scope. @@ -2999,6 +3036,28 @@ export namespace compute_beta { */ port?: number; } + export interface Schema$HealthStatusForNetworkEndpoint { + /** + * URL of the backend service associated with the health state of the + * network endpoint. + */ + backendService?: Schema$BackendServiceReference; + /** + * URL of the forwarding rule associated with the health state of the + * network endpoint. + */ + forwardingRule?: Schema$ForwardingRuleReference; + /** + * URL of the health check associated with the health state of the network + * endpoint. + */ + healthCheck?: Schema$HealthCheckReference; + /** + * Health state of the network endpoint determined based on the health + * checks configured. + */ + healthState?: string; + } /** * UrlMaps A host-matching rule for a URL. If matched, will use the named * PathMatcher to select the BackendService. @@ -3039,46 +3098,23 @@ export namespace compute_beta { */ portName?: string; /** - * Specifies the type of proxy header to append before sending data to the - * backend, either NONE or PROXY_V1. The default is NONE. + * Specifies how port is selected for health checking, can be one of + * following values: USE_FIXED_PORT: The port number in port is used for + * health checking. USE_NAMED_PORT: The portName is used for health + * checking. USE_SERVING_PORT: For NetworkEndpointGroup, the port specified + * for each network endpoint is used for health checking. For other + * backends, the port or named port specified in the Backend Service is used + * for health checking. If not specified, HTTP2 health check follows + * behavior specified in port and portName fields. */ - proxyHeader?: string; - /** - * The request path of the HTTP/2 health check request. The default value is - * /. - */ - requestPath?: string; - /** - * The string to match anywhere in the first 1024 bytes of the response - * body. If left empty (the default value), the status code determines - * health. The response data can only be ASCII. - */ - response?: string; - } - export interface Schema$HTTPHealthCheck { - /** - * The value of the host header in the HTTP health check request. If left - * empty (default value), the IP on behalf of which this health check is - * performed will be used. - */ - host?: string; - /** - * The TCP port number for the health check request. The default value - * is 80. Valid values are 1 through 65535. - */ - port?: number; - /** - * Port name as defined in InstanceGroup#NamedPort#name. If both port and - * port_name are defined, port takes precedence. - */ - portName?: string; + portSpecification?: string; /** * Specifies the type of proxy header to append before sending data to the * backend, either NONE or PROXY_V1. The default is NONE. */ proxyHeader?: string; /** - * The request path of the HTTP health check request. The default value is + * The request path of the HTTP/2 health check request. The default value is * /. */ requestPath?: string; @@ -3165,6 +3201,51 @@ export namespace compute_beta { */ unhealthyThreshold?: number; } + export interface Schema$HTTPHealthCheck { + /** + * The value of the host header in the HTTP health check request. If left + * empty (default value), the IP on behalf of which this health check is + * performed will be used. + */ + host?: string; + /** + * The TCP port number for the health check request. The default value + * is 80. Valid values are 1 through 65535. + */ + port?: number; + /** + * Port name as defined in InstanceGroup#NamedPort#name. If both port and + * port_name are defined, port takes precedence. + */ + portName?: string; + /** + * Specifies how port is selected for health checking, can be one of + * following values: USE_FIXED_PORT: The port number in port is used for + * health checking. USE_NAMED_PORT: The portName is used for health + * checking. USE_SERVING_PORT: For NetworkEndpointGroup, the port specified + * for each network endpoint is used for health checking. For other + * backends, the port or named port specified in the Backend Service is used + * for health checking. If not specified, HTTP health check follows + * behavior specified in port and portName fields. + */ + portSpecification?: string; + /** + * Specifies the type of proxy header to append before sending data to the + * backend, either NONE or PROXY_V1. The default is NONE. + */ + proxyHeader?: string; + /** + * The request path of the HTTP health check request. The default value is + * /. + */ + requestPath?: string; + /** + * The string to match anywhere in the first 1024 bytes of the response + * body. If left empty (the default value), the status code determines + * health. The response data can only be ASCII. + */ + response?: string; + } /** * Contains a list of HttpHealthCheck resources. */ @@ -3198,6 +3279,51 @@ export namespace compute_beta { */ warning?: any; } + export interface Schema$HTTPSHealthCheck { + /** + * The value of the host header in the HTTPS health check request. If left + * empty (default value), the IP on behalf of which this health check is + * performed will be used. + */ + host?: string; + /** + * The TCP port number for the health check request. The default value is + * 443. Valid values are 1 through 65535. + */ + port?: number; + /** + * Port name as defined in InstanceGroup#NamedPort#name. If both port and + * port_name are defined, port takes precedence. + */ + portName?: string; + /** + * Specifies how port is selected for health checking, can be one of + * following values: USE_FIXED_PORT: The port number in port is used for + * health checking. USE_NAMED_PORT: The portName is used for health + * checking. USE_SERVING_PORT: For NetworkEndpointGroup, the port specified + * for each network endpoint is used for health checking. For other + * backends, the port or named port specified in the Backend Service is used + * for health checking. If not specified, HTTPS health check follows + * behavior specified in port and portName fields. + */ + portSpecification?: string; + /** + * Specifies the type of proxy header to append before sending data to the + * backend, either NONE or PROXY_V1. The default is NONE. + */ + proxyHeader?: string; + /** + * The request path of the HTTPS health check request. The default value is + * /. + */ + requestPath?: string; + /** + * The string to match anywhere in the first 1024 bytes of the response + * body. If left empty (the default value), the status code determines + * health. The response data can only be ASCII. + */ + response?: string; + } /** * An HttpsHealthCheck resource. This resource defines a template for how * individual instances should be checked for health, via HTTPS. @@ -3273,40 +3399,6 @@ export namespace compute_beta { */ unhealthyThreshold?: number; } - export interface Schema$HTTPSHealthCheck { - /** - * The value of the host header in the HTTPS health check request. If left - * empty (default value), the IP on behalf of which this health check is - * performed will be used. - */ - host?: string; - /** - * The TCP port number for the health check request. The default value is - * 443. Valid values are 1 through 65535. - */ - port?: number; - /** - * Port name as defined in InstanceGroup#NamedPort#name. If both port and - * port_name are defined, port takes precedence. - */ - portName?: string; - /** - * Specifies the type of proxy header to append before sending data to the - * backend, either NONE or PROXY_V1. The default is NONE. - */ - proxyHeader?: string; - /** - * The request path of the HTTPS health check request. The default value is - * /. - */ - requestPath?: string; - /** - * The string to match anywhere in the first 1024 bytes of the response - * body. If left empty (the default value), the status code determines - * health. The response data can only be ASCII. - */ - response?: string; - } /** * Contains a list of HttpsHealthCheck resources. */ @@ -5734,7 +5826,7 @@ export namespace compute_beta { warning?: any; } /** - * Next available tag: 12 + * A Managed Instance resource. */ export interface Schema$ManagedInstance { /** @@ -5913,6 +6005,249 @@ export namespace compute_beta { */ subnetworks?: string[]; } + /** + * The network endpoint. + */ + export interface Schema$NetworkEndpoint { + /** + * The name for a specific VM instance that the IP address belongs to. This + * is required for network endpoints of type GCE_VM_IP and GCE_VM_IP_PORT. + * The instance must be in the same zone of network endpoint group. The + * name must be 1-63 characters long, and comply with RFC1035. + */ + instance?: string; + /** + * Optional IPv4 address of network endpoint. The IP address must belong to + * a VM in GCE (either the primary IP or as part of an aliased IP range). If + * the IP address is not specified, then the primary IP address for the VM + * instance in the network that the network endpoint group belongs to will + * be used. + */ + ipAddress?: string; + /** + * Optional port number of network endpoint. If not specified and the + * NetworkEndpointGroup.network_endpoint_type is GCE_IP_PORT, the + * defaultPort for the network endpoint group will be used. + */ + port?: number; + } + /** + * Represents a collection of network endpoints. + */ + export interface Schema$NetworkEndpointGroup { + /** + * [Output Only] Creation timestamp in RFC3339 text format. + */ + creationTimestamp?: string; + /** + * An optional description of this resource. Provide this property when you + * create the resource. + */ + description?: string; + /** + * [Output Only] The unique identifier for the resource. This identifier is + * defined by the server. + */ + id?: string; + /** + * [Output Only] Type of the resource. Always compute#networkEndpointGroup + * for network endpoint group. + */ + kind?: string; + /** + * This field is only valid when the network endpoint group type is + * LOAD_BALANCING. + */ + loadBalancer?: Schema$NetworkEndpointGroupLbNetworkEndpointGroup; + /** + * Name of the resource; provided by the client when the resource is + * created. The name must be 1-63 characters long, and comply with RFC1035. + * Specifically, the name must be 1-63 characters long and match the regular + * expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character + * must be a lowercase letter, and all following characters must be a dash, + * lowercase letter, or digit, except the last character, which cannot be a + * dash. + */ + name?: string; + /** + * Type of network endpoints in this network endpoint group. Only supported + * values for LOAD_BALANCING are GCE_VM_IP or GCE_VM_IP_PORT. + */ + networkEndpointType?: string; + /** + * [Output Only] Server-defined URL for the resource. + */ + selfLink?: string; + /** + * [Output only] Number of network endpoints in the network endpoint group. + */ + size?: number; + /** + * Specify the type of this network endpoint group. Only LOAD_BALANCING is + * valid for now. + */ + type?: string; + } + export interface Schema$NetworkEndpointGroupAggregatedList { + /** + * [Output Only] Unique identifier for the resource; defined by the server. + */ + id?: string; + /** + * A list of NetworkEndpointGroupsScopedList resources. + */ + items?: any; + /** + * [Output Only] The resource type, which is always + * compute#networkEndpointGroupAggregatedList for aggregated lists of + * network endpoint groups. + */ + kind?: string; + /** + * [Output Only] This token allows you to get the next page of results for + * list requests. If the number of results is larger than maxResults, use + * the nextPageToken as a value for the query parameter pageToken in the + * next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + */ + nextPageToken?: string; + /** + * [Output Only] Server-defined URL for this resource. + */ + selfLink?: string; + /** + * [Output Only] Informational warning message. + */ + warning?: any; + } + /** + * Load balancing specific fields for network endpoint group of type + * LOAD_BALANCING. + */ + export interface Schema$NetworkEndpointGroupLbNetworkEndpointGroup { + /** + * The default port used if the port number is not specified in the network + * endpoint. If the network endpoint type is GCE_VM_IP, this field must not + * be specified. + */ + defaultPort?: number; + /** + * The URL of the network to which all network endpoints in the NEG belong. + * Uses "default" project network if unspecified. + */ + network?: string; + /** + * Optional URL of the subnetwork to which all network endpoints in the NEG + * belong. + */ + subnetwork?: string; + /** + * [Output Only] The URL of the zone where the network endpoint group is + * located. + */ + zone?: string; + } + export interface Schema$NetworkEndpointGroupList { + /** + * [Output Only] Unique identifier for the resource; defined by the server. + */ + id?: string; + /** + * A list of NetworkEndpointGroup resources. + */ + items?: Schema$NetworkEndpointGroup[]; + /** + * [Output Only] The resource type, which is always + * compute#networkEndpointGroupList for network endpoint group lists. + */ + kind?: string; + /** + * [Output Only] This token allows you to get the next page of results for + * list requests. If the number of results is larger than maxResults, use + * the nextPageToken as a value for the query parameter pageToken in the + * next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + */ + nextPageToken?: string; + /** + * [Output Only] Server-defined URL for this resource. + */ + selfLink?: string; + /** + * [Output Only] Informational warning message. + */ + warning?: any; + } + export interface Schema$NetworkEndpointGroupsAttachEndpointsRequest { + /** + * The list of network endpoints to be attached. + */ + networkEndpoints?: Schema$NetworkEndpoint[]; + } + export interface Schema$NetworkEndpointGroupsDetachEndpointsRequest { + /** + * The list of network endpoints to be detached. + */ + networkEndpoints?: Schema$NetworkEndpoint[]; + } + export interface Schema$NetworkEndpointGroupsListEndpointsRequest { + /** + * Optional query parameter for showing the health status of each network + * endpoint. Valid options are SKIP or SHOW. If you don't specifiy this + * parameter, the health status of network endpoints will not be provided. + */ + healthStatus?: string; + } + export interface Schema$NetworkEndpointGroupsListNetworkEndpoints { + /** + * [Output Only] Unique identifier for the resource; defined by the server. + */ + id?: string; + /** + * A list of NetworkEndpointWithHealthStatus resources. + */ + items?: Schema$NetworkEndpointWithHealthStatus[]; + /** + * [Output Only] The resource type, which is always + * compute#networkEndpointGroupsListNetworkEndpoints for the list of network + * endpoints in the specified network endpoint group. + */ + kind?: string; + /** + * [Output Only] This token allows you to get the next page of results for + * list requests. If the number of results is larger than maxResults, use + * the nextPageToken as a value for the query parameter pageToken in the + * next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + */ + nextPageToken?: string; + /** + * [Output Only] Informational warning message. + */ + warning?: any; + } + export interface Schema$NetworkEndpointGroupsScopedList { + /** + * [Output Only] The list of network endpoint groups that are contained in + * this scope. + */ + networkEndpointGroups?: Schema$NetworkEndpointGroup[]; + /** + * [Output Only] An informational warning that replaces the list of network + * endpoint groups when the list is empty. + */ + warning?: any; + } + export interface Schema$NetworkEndpointWithHealthStatus { + /** + * [Output only] The health status of network endpoint; + */ + healths?: Schema$HealthStatusForNetworkEndpoint[]; + /** + * [Output only] The network endpoint; + */ + networkEndpoint?: Schema$NetworkEndpoint; + } /** * A network interface resource attached to an instance. */ @@ -6840,6 +7175,12 @@ export namespace compute_beta { */ version?: number; } + export interface Schema$PreconfiguredWafSet { + /** + * List of entities that are currently supported for WAF rules. + */ + expressionSets?: Schema$WafExpressionSet[]; + } /** * A Project resource. For an overview of projects, see Cloud Platform * Resource Hierarchy. (== resource_for v1.projects ==) (== resource_for @@ -7967,6 +8308,12 @@ export namespace compute_beta { */ values?: string[]; } + export interface Schema$SecurityPoliciesListPreconfiguredExpressionSetsResponse { + preconfiguredExpressionSets?: Schema$SecurityPoliciesWafConfig; + } + export interface Schema$SecurityPoliciesWafConfig { + wafRules?: Schema$PreconfiguredWafSet; + } /** * A security policy is comprised of one or more rules. It can also be * associated with one or more 'targets'. Next available tag: 11 @@ -8469,6 +8816,17 @@ export namespace compute_beta { * port_name are defined, port takes precedence. */ portName?: string; + /** + * Specifies how port is selected for health checking, can be one of + * following values: USE_FIXED_PORT: The port number in port is used for + * health checking. USE_NAMED_PORT: The portName is used for health + * checking. USE_SERVING_PORT: For NetworkEndpointGroup, the port specified + * for each network endpoint is used for health checking. For other + * backends, the port or named port specified in the Backend Service is used + * for health checking. If not specified, SSL health check follows + * behavior specified in port and portName fields. + */ + portSpecification?: string; /** * Specifies the type of proxy header to append before sending data to the * backend, either NONE or PROXY_V1. The default is NONE. @@ -10242,6 +10600,34 @@ export namespace compute_beta { */ warning?: any; } + export interface Schema$WafExpressionSet { + /** + * A list of alternate IDs. The format should be: - E.g. XSS-stable Generic + * suffix like "stable" is particularly useful if a policy likes + * to avail newer set of expressions without having to change the policy. A + * given alias name can't be used for more than one entity set. + */ + aliases?: string[]; + /** + * List of available expressions. + */ + expressions?: Schema$WafExpressionSetExpression[]; + /** + * Google specified expression set ID. The format should be: - E.g. + * XSS-20170329 + */ + id?: string; + } + export interface Schema$WafExpressionSetExpression { + /** + * Expression ID should uniquely identify the origin of the expression. E.g. + * owasp-crs-v020901-id973337 identifies Owasp core rule set version 2.9.1 + * rule id 973337. The ID could be used to determine the individual attack + * definition that has been detected. It could also be used to exclude it + * from the policy in case of false positive. + */ + id?: string; + } export interface Schema$XpnHostList { /** * [Output Only] Unique identifier for the resource; defined by the server. @@ -43474,26 +43860,1073 @@ export namespace compute_beta { */ project?: string; } - export interface Params$Resource$Machinetypes$Get { + export interface Params$Resource$Machinetypes$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the machine type to return. + */ + machineType?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + } + export interface Params$Resource$Machinetypes$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + } + + + export class Resource$Networkendpointgroups { + root: Compute; + constructor(root: Compute) { + this.root = root; + this.getRoot.bind(this); + } + + getRoot() { + return this.root; + } + + + /** + * compute.networkEndpointGroups.aggregatedList + * @desc Retrieves the list of network endpoint groups and sorts them by + * zone. + * @alias compute.networkEndpointGroups.aggregatedList + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string=} params.filter A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You can also filter nested fields. For example, you could specify scheduling.automaticRestart = false to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake"). By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly. For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true). + * @param {integer=} params.maxResults The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + * @param {string=} params.orderBy Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by name or creationTimestamp desc is supported. + * @param {string=} params.pageToken Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. + * @param {string} params.project Project ID for this request. + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + aggregatedList( + params?: Params$Resource$Networkendpointgroups$Aggregatedlist, + options?: MethodOptions): + AxiosPromise; + aggregatedList( + params: Params$Resource$Networkendpointgroups$Aggregatedlist, + options: MethodOptions| + BodyResponseCallback, + callback: + BodyResponseCallback): + void; + aggregatedList( + params: Params$Resource$Networkendpointgroups$Aggregatedlist, + callback: + BodyResponseCallback): + void; + aggregatedList( + callback: + BodyResponseCallback): + void; + aggregatedList( + paramsOrCallback?: Params$Resource$Networkendpointgroups$Aggregatedlist| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: + BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Networkendpointgroups$Aggregatedlist; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Networkendpointgroups$Aggregatedlist; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: + (rootUrl + + '/compute/beta/projects/{project}/aggregated/networkEndpointGroups') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'GET' + }, + options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest( + parameters, callback); + } else { + return createAPIRequest( + parameters); + } + } + + + /** + * compute.networkEndpointGroups.attachNetworkEndpoints + * @desc Attach a list of network endpoints to the specified network + * endpoint group. + * @alias compute.networkEndpointGroups.attachNetworkEndpoints + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.networkEndpointGroup The name of the network endpoint group where you are attaching network endpoints to. It should comply with RFC1035. + * @param {string} params.project Project ID for this request. + * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + * @param {string} params.zone The name of the zone where the network endpoint group is located. It should comply with RFC1035. + * @param {().NetworkEndpointGroupsAttachEndpointsRequest} params.resource Request body data + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + attachNetworkEndpoints( + params?: Params$Resource$Networkendpointgroups$Attachnetworkendpoints, + options?: MethodOptions): AxiosPromise; + attachNetworkEndpoints( + params: Params$Resource$Networkendpointgroups$Attachnetworkendpoints, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + attachNetworkEndpoints( + params: Params$Resource$Networkendpointgroups$Attachnetworkendpoints, + callback: BodyResponseCallback): void; + attachNetworkEndpoints(callback: BodyResponseCallback): + void; + attachNetworkEndpoints( + paramsOrCallback?: + Params$Resource$Networkendpointgroups$Attachnetworkendpoints| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Networkendpointgroups$Attachnetworkendpoints; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Networkendpointgroups$Attachnetworkendpoints; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: + (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/attachNetworkEndpoints') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'POST' + }, + options), + params, + requiredParams: ['project', 'zone', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project', 'zone'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + + /** + * compute.networkEndpointGroups.delete + * @desc Deletes the specified network endpoint group. The network endpoints + * in the NEG and the VM instances they belong to are not terminated when + * the NEG is deleted. Note that the NEG cannot be deleted if there are + * backend services referencing it. + * @alias compute.networkEndpointGroups.delete + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.networkEndpointGroup The name of the network endpoint group to delete. It should comply with RFC1035. + * @param {string} params.project Project ID for this request. + * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + * @param {string} params.zone The name of the zone where the network endpoint group is located. It should comply with RFC1035. + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + delete( + params?: Params$Resource$Networkendpointgroups$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Networkendpointgroups$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Networkendpointgroups$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Networkendpointgroups$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Networkendpointgroups$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Networkendpointgroups$Delete; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: + (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE' + }, + options), + params, + requiredParams: ['project', 'zone', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project', 'zone'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + + /** + * compute.networkEndpointGroups.detachNetworkEndpoints + * @desc Detach a list of network endpoints from the specified network + * endpoint group. + * @alias compute.networkEndpointGroups.detachNetworkEndpoints + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.networkEndpointGroup The name of the network endpoint group where you are removing network endpoints. It should comply with RFC1035. + * @param {string} params.project Project ID for this request. + * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + * @param {string} params.zone The name of the zone where the network endpoint group is located. It should comply with RFC1035. + * @param {().NetworkEndpointGroupsDetachEndpointsRequest} params.resource Request body data + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + detachNetworkEndpoints( + params?: Params$Resource$Networkendpointgroups$Detachnetworkendpoints, + options?: MethodOptions): AxiosPromise; + detachNetworkEndpoints( + params: Params$Resource$Networkendpointgroups$Detachnetworkendpoints, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + detachNetworkEndpoints( + params: Params$Resource$Networkendpointgroups$Detachnetworkendpoints, + callback: BodyResponseCallback): void; + detachNetworkEndpoints(callback: BodyResponseCallback): + void; + detachNetworkEndpoints( + paramsOrCallback?: + Params$Resource$Networkendpointgroups$Detachnetworkendpoints| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Networkendpointgroups$Detachnetworkendpoints; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Networkendpointgroups$Detachnetworkendpoints; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: + (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/detachNetworkEndpoints') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'POST' + }, + options), + params, + requiredParams: ['project', 'zone', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project', 'zone'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + + /** + * compute.networkEndpointGroups.get + * @desc Returns the specified network endpoint group. Gets a list of + * available network endpoint groups by making a list() request. + * @alias compute.networkEndpointGroups.get + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.networkEndpointGroup The name of the network endpoint group. It should comply with RFC1035. + * @param {string} params.project Project ID for this request. + * @param {string} params.zone The name of the zone where the network endpoint group is located. It should comply with RFC1035. + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + get(params?: Params$Resource$Networkendpointgroups$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Networkendpointgroups$Get, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Networkendpointgroups$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Networkendpointgroups$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = + (paramsOrCallback || {}) as Params$Resource$Networkendpointgroups$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Networkendpointgroups$Get; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: + (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'GET' + }, + options), + params, + requiredParams: ['project', 'zone', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project', 'zone'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + + /** + * compute.networkEndpointGroups.insert + * @desc Creates a network endpoint group in the specified project using the + * parameters that are included in the request. + * @alias compute.networkEndpointGroups.insert + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.project Project ID for this request. + * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + * @param {string} params.zone The name of the zone where you want to create the network endpoint group. It should comply with RFC1035. + * @param {().NetworkEndpointGroup} params.resource Request body data + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + insert( + params?: Params$Resource$Networkendpointgroups$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Networkendpointgroups$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Networkendpointgroups$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Networkendpointgroups$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Networkendpointgroups$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Networkendpointgroups$Insert; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: + (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/networkEndpointGroups') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'POST' + }, + options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + + /** + * compute.networkEndpointGroups.list + * @desc Retrieves the list of network endpoint groups that are located in + * the specified project and zone. + * @alias compute.networkEndpointGroups.list + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string=} params.filter A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You can also filter nested fields. For example, you could specify scheduling.automaticRestart = false to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake"). By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly. For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true). + * @param {integer=} params.maxResults The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + * @param {string=} params.orderBy Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by name or creationTimestamp desc is supported. + * @param {string=} params.pageToken Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. + * @param {string} params.project Project ID for this request. + * @param {string} params.zone The name of the zone where the network endpoint group is located. It should comply with RFC1035. + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + list( + params?: Params$Resource$Networkendpointgroups$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Networkendpointgroups$List, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Networkendpointgroups$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Networkendpointgroups$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Networkendpointgroups$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Networkendpointgroups$List; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: + (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/networkEndpointGroups') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'GET' + }, + options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + + /** + * compute.networkEndpointGroups.listNetworkEndpoints + * @desc Lists the network endpoints in the specified network endpoint + * group. + * @alias compute.networkEndpointGroups.listNetworkEndpoints + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string=} params.filter A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You can also filter nested fields. For example, you could specify scheduling.automaticRestart = false to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake"). By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly. For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true). + * @param {integer=} params.maxResults The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + * @param {string} params.networkEndpointGroup The name of the network endpoint group from which you want to generate a list of included network endpoints. It should comply with RFC1035. + * @param {string=} params.orderBy Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by name or creationTimestamp desc is supported. + * @param {string=} params.pageToken Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. + * @param {string} params.project Project ID for this request. + * @param {string} params.zone The name of the zone where the network endpoint group is located. It should comply with RFC1035. + * @param {().NetworkEndpointGroupsListEndpointsRequest} params.resource Request body data + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + listNetworkEndpoints( + params?: Params$Resource$Networkendpointgroups$Listnetworkendpoints, + options?: MethodOptions): + AxiosPromise; + listNetworkEndpoints( + params: Params$Resource$Networkendpointgroups$Listnetworkendpoints, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback< + Schema$NetworkEndpointGroupsListNetworkEndpoints>): void; + listNetworkEndpoints( + params: Params$Resource$Networkendpointgroups$Listnetworkendpoints, + callback: BodyResponseCallback< + Schema$NetworkEndpointGroupsListNetworkEndpoints>): void; + listNetworkEndpoints(callback: BodyResponseCallback< + Schema$NetworkEndpointGroupsListNetworkEndpoints>): + void; + listNetworkEndpoints( + paramsOrCallback?: + Params$Resource$Networkendpointgroups$Listnetworkendpoints| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback< + Schema$NetworkEndpointGroupsListNetworkEndpoints>): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Networkendpointgroups$Listnetworkendpoints; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Networkendpointgroups$Listnetworkendpoints; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: + (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/listNetworkEndpoints') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'POST' + }, + options), + params, + requiredParams: ['project', 'zone', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project', 'zone'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest( + parameters, callback); + } else { + return createAPIRequest< + Schema$NetworkEndpointGroupsListNetworkEndpoints>(parameters); + } + } + + + /** + * compute.networkEndpointGroups.testIamPermissions + * @desc Returns permissions that a caller has on the specified resource. + * @alias compute.networkEndpointGroups.testIamPermissions + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.project Project ID for this request. + * @param {string} params.resource_ Name of the resource for this request. + * @param {string} params.zone The name of the zone for this request. + * @param {().TestPermissionsRequest} params.resource Request body data + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + testIamPermissions( + params?: Params$Resource$Networkendpointgroups$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Networkendpointgroups$Testiampermissions, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): void; + testIamPermissions( + params: Params$Resource$Networkendpointgroups$Testiampermissions, + callback: BodyResponseCallback): void; + testIamPermissions( + callback: BodyResponseCallback): void; + testIamPermissions( + paramsOrCallback?: + Params$Resource$Networkendpointgroups$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Networkendpointgroups$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Networkendpointgroups$Testiampermissions; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: + (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/networkEndpointGroups/{resource}/testIamPermissions') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'POST' + }, + options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + } + + export interface Params$Resource$Networkendpointgroups$Aggregatedlist { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Networkendpointgroups$Attachnetworkendpoints { /** * Auth client or API Key for the request */ auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; /** - * Name of the machine type to return. + * The name of the network endpoint group where you are attaching network + * endpoints to. It should comply with RFC1035. */ - machineType?: string; + networkEndpointGroup?: string; /** * Project ID for this request. */ project?: string; /** - * The name of the zone for this request. + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone where the network endpoint group is located. It + * should comply with RFC1035. */ zone?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$NetworkEndpointGroupsAttachEndpointsRequest; } - export interface Params$Resource$Machinetypes$List { + export interface Params$Resource$Networkendpointgroups$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the network endpoint group to delete. It should comply with + * RFC1035. + */ + networkEndpointGroup?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone where the network endpoint group is located. It + * should comply with RFC1035. + */ + zone?: string; + } + export interface Params$Resource$Networkendpointgroups$Detachnetworkendpoints { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the network endpoint group where you are removing network + * endpoints. It should comply with RFC1035. + */ + networkEndpointGroup?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone where the network endpoint group is located. It + * should comply with RFC1035. + */ + zone?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$NetworkEndpointGroupsDetachEndpointsRequest; + } + export interface Params$Resource$Networkendpointgroups$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the network endpoint group. It should comply with RFC1035. + */ + networkEndpointGroup?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the zone where the network endpoint group is located. It + * should comply with RFC1035. + */ + zone?: string; + } + export interface Params$Resource$Networkendpointgroups$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone where you want to create the network endpoint group. + * It should comply with RFC1035. + */ + zone?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$NetworkEndpointGroup; + } + export interface Params$Resource$Networkendpointgroups$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the zone where the network endpoint group is located. It + * should comply with RFC1035. + */ + zone?: string; + } + export interface Params$Resource$Networkendpointgroups$Listnetworkendpoints { /** * Auth client or API Key for the request */ @@ -43526,6 +44959,11 @@ export namespace compute_beta { * (Default: 500) */ maxResults?: number; + /** + * The name of the network endpoint group from which you want to generate a + * list of included network endpoints. It should comply with RFC1035. + */ + networkEndpointGroup?: string; /** * Sorts list results by a certain order. By default, results are returned * in alphanumerical order based on the resource name. You can also sort @@ -43546,10 +44984,40 @@ export namespace compute_beta { * Project ID for this request. */ project?: string; + /** + * The name of the zone where the network endpoint group is located. It + * should comply with RFC1035. + */ + zone?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$NetworkEndpointGroupsListEndpointsRequest; + } + export interface Params$Resource$Networkendpointgroups$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; /** * The name of the zone for this request. */ zone?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$TestPermissionsRequest; } @@ -61384,6 +62852,102 @@ export namespace compute_beta { } + /** + * compute.securityPolicies.listPreconfiguredExpressionSets + * @desc Gets the current list of preconfigured Web Application Firewall + * (WAF) expressions. + * @alias compute.securityPolicies.listPreconfiguredExpressionSets + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string=} params.filter A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You can also filter nested fields. For example, you could specify scheduling.automaticRestart = false to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake"). By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly. For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true). + * @param {integer=} params.maxResults The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + * @param {string=} params.orderBy Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by name or creationTimestamp desc is supported. + * @param {string=} params.pageToken Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. + * @param {string} params.project Project ID for this request. + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + listPreconfiguredExpressionSets( + params?: + Params$Resource$Securitypolicies$Listpreconfiguredexpressionsets, + options?: MethodOptions): + AxiosPromise< + Schema$SecurityPoliciesListPreconfiguredExpressionSetsResponse>; + listPreconfiguredExpressionSets( + params: + Params$Resource$Securitypolicies$Listpreconfiguredexpressionsets, + options: MethodOptions|BodyResponseCallback< + Schema$SecurityPoliciesListPreconfiguredExpressionSetsResponse>, + callback: BodyResponseCallback< + Schema$SecurityPoliciesListPreconfiguredExpressionSetsResponse>): + void; + listPreconfiguredExpressionSets( + params: + Params$Resource$Securitypolicies$Listpreconfiguredexpressionsets, + callback: BodyResponseCallback< + Schema$SecurityPoliciesListPreconfiguredExpressionSetsResponse>): + void; + listPreconfiguredExpressionSets( + callback: BodyResponseCallback< + Schema$SecurityPoliciesListPreconfiguredExpressionSetsResponse>): + void; + listPreconfiguredExpressionSets( + paramsOrCallback?: + Params$Resource$Securitypolicies$Listpreconfiguredexpressionsets| + BodyResponseCallback< + Schema$SecurityPoliciesListPreconfiguredExpressionSetsResponse>, + optionsOrCallback?: MethodOptions|BodyResponseCallback< + Schema$SecurityPoliciesListPreconfiguredExpressionSetsResponse>, + callback?: BodyResponseCallback< + Schema$SecurityPoliciesListPreconfiguredExpressionSetsResponse>): + void|AxiosPromise< + Schema$SecurityPoliciesListPreconfiguredExpressionSetsResponse> { + let params = (paramsOrCallback || {}) as + Params$Resource$Securitypolicies$Listpreconfiguredexpressionsets; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Securitypolicies$Listpreconfiguredexpressionsets; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: + (rootUrl + + '/compute/beta/projects/{project}/global/securityPolicies/listPreconfiguredExpressionSets') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'GET' + }, + options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest< + Schema$SecurityPoliciesListPreconfiguredExpressionSetsResponse>( + parameters, callback); + } else { + return createAPIRequest< + Schema$SecurityPoliciesListPreconfiguredExpressionSetsResponse>( + parameters); + } + } + + /** * compute.securityPolicies.patch * @desc Patches the specified policy with the data included in the request. @@ -61958,6 +63522,60 @@ export namespace compute_beta { */ project?: string; } + export interface Params$Resource$Securitypolicies$Listpreconfiguredexpressionsets { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } export interface Params$Resource$Securitypolicies$Patch { /** * Auth client or API Key for the request diff --git a/src/apis/compute/v1.ts b/src/apis/compute/v1.ts index 44022952c55..3e0a24499f3 100644 --- a/src/apis/compute/v1.ts +++ b/src/apis/compute/v1.ts @@ -1814,6 +1814,41 @@ export namespace compute_v1 { */ warning?: any; } + /** + * A specification of the desired way to instantiate a disk in the instance + * template when its created from a source instance. + */ + export interface Schema$DiskInstantiationConfig { + /** + * Specifies whether the disk will be auto-deleted when the instance is + * deleted (but not when the disk is detached from the instance). + */ + autoDelete?: boolean; + /** + * The custom source image to be used to restore this disk when + * instantiating this instance template. + */ + customImage?: string; + /** + * Specifies the device name of the disk to which the configurations apply + * to. + */ + deviceName?: string; + /** + * Specifies whether to include the disk and what image to use. Possible + * values are: - source-image: to use the same image that was used to + * create the source instance's corresponding disk. Applicable to the + * boot disk and additional read-write disks. - source-image-family: to use + * the same image family that was used to create the source instance's + * corresponding disk. Applicable to the boot disk and additional read-write + * disks. - custom-image: to use a user-provided image url for disk + * creation. Applicable to the boot disk and additional read-write disks. - + * attach-read-only: to attach a read-only disk. Applicable to read-only + * disks. - do-not-include: to exclude a disk from the template. Applicable + * to additional read-write disks, local SSDs, and read-only disks. + */ + instantiateFrom?: string; + } /** * A list of Disk resources. */ @@ -4014,6 +4049,18 @@ export namespace compute_v1 { * URL. */ selfLink?: string; + /** + * The source instance used to create the template. You can provide this as + * a partial or full URL to the resource. For example, the following are + * valid values: - + * https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/instance + * - projects/project/zones/zone/instances/instance + */ + sourceInstance?: string; + /** + * The source instance params to use to create this instance template. + */ + sourceInstanceParams?: Schema$SourceInstanceParams; } /** * A list of instance templates. @@ -4964,7 +5011,7 @@ export namespace compute_v1 { warning?: any; } /** - * Next available tag: 12 + * A Managed Instance resource. */ export interface Schema$ManagedInstance { /** @@ -6770,6 +6817,19 @@ export namespace compute_v1 { */ warning?: any; } + /** + * A specification of the parameters to use when creating the instance + * template from a source instance. + */ + export interface Schema$SourceInstanceParams { + /** + * Attached disks configuration. If not provided, defaults are applied: For + * boot disk and any other R/W disks, new custom images will be created from + * each disk. For read-only disks, they will be attached in read-only mode. + * Local SSD disks will be created as blank volumes. + */ + diskConfigs?: Schema$DiskInstantiationConfig[]; + } /** * An SslCertificate resource. This resource provides a mechanism to upload an * SSL key and certificate to the load balancer to serve secure connections diff --git a/src/apis/container/v1beta1.ts b/src/apis/container/v1beta1.ts index 225fc105823..907525e7a34 100644 --- a/src/apis/container/v1beta1.ts +++ b/src/apis/container/v1beta1.ts @@ -937,6 +937,28 @@ export namespace container_v1beta1 { */ enabled?: boolean; } + /** + * Progress metric is (string, int|float|string) pair. + */ + export interface Schema$Metric { + /** + * For metrics with floating point value. + */ + doubleValue?: number; + /** + * For metrics with integer value. + */ + intValue?: string; + /** + * Metric name, required. e.g., "nodes total", "percent + * done" + */ + name?: string; + /** + * For metrics with custom values (ratios, visual progress, etc.). + */ + stringValue?: string; + } /** * NetworkConfig reports the relative names of network & subnetwork. */ @@ -1246,6 +1268,10 @@ export namespace container_v1beta1 { * The operation type. */ operationType?: string; + /** + * [Output only] Progress information for an operation. + */ + progress?: Schema$OperationProgress; /** * Server-defined URL for the resource. */ @@ -1274,6 +1300,32 @@ export namespace container_v1beta1 { */ zone?: string; } + /** + * Information about operation (or operation stage) progress. + */ + export interface Schema$OperationProgress { + /** + * Progress metric bundle, for example: metrics: [{name: "nodes + * done", int_value: 15}, {name: "nodes + * total", int_value: 32}] or metrics: [{name: + * "progress", double_value: 0.56}, {name: + * "progress scale", double_value: 1.0}] + */ + metrics?: Schema$Metric[]; + /** + * A non-parameterized string describing an operation stage. Unset for + * single-stage operations. + */ + name?: string; + /** + * Substages of an operation or a stage. + */ + stages?: Schema$OperationProgress[]; + /** + * Status of an operation stage. Unset for single-stage operations. + */ + status?: string; + } /** * Configuration for the PodSecurityPolicy feature. */ diff --git a/src/apis/content/v2.ts b/src/apis/content/v2.ts index 27a7beba497..875cbd72b90 100644 --- a/src/apis/content/v2.ts +++ b/src/apis/content/v2.ts @@ -712,6 +712,24 @@ export namespace content_v2 { */ services?: string[]; } + export interface Schema$CutoffTime { + /** + * Hour of the cutoff time until which an order has to be placed to be + * processed in the same day. Required. + */ + hour?: number; + /** + * Minute of the cutoff time until which an order has to be placed to be + * processed in the same day. Required. + */ + minute?: number; + /** + * Timezone identifier for the cutoff time. A list of identifiers can be + * found in the AdWords API documentation. E.g. "Europe/Zurich". + * Required. + */ + timezone?: string; + } /** * Datafeed configuration data. */ @@ -1103,17 +1121,33 @@ export namespace content_v2 { language?: string; } export interface Schema$DeliveryTime { + /** + * Business days cutoff time definition. If not configured the cutoff time + * will be defaulted to 8AM PST. + */ + cutoffTime?: Schema$CutoffTime; /** * Holiday cutoff definitions. If configured, they specify order cutoff * times for holiday-specific shipping. */ holidayCutoffs?: Schema$HolidayCutoff[]; + /** + * Maximum number of business days spent before an order is shipped. 0 means + * same day shipped, 1 means next day shipped. Must be greater than or equal + * to minHandlingTimeInDays. + */ + maxHandlingTimeInDays?: number; /** * Maximum number of business days that is spent in transit. 0 means same * day delivery, 1 means next day delivery. Must be greater than or equal to * minTransitTimeInDays. Required. */ maxTransitTimeInDays?: number; + /** + * Minimum number of business days spent before an order is shipped. 0 means + * same day shipped, 1 means next day shipped. + */ + minHandlingTimeInDays?: number; /** * Minimum number of business days that is spent in transit. 0 means same * day delivery, 1 means next day delivery. Required. @@ -1563,6 +1597,10 @@ export namespace content_v2 { * LIA "On Display To Order" settings. */ onDisplayToOrder?: Schema$LiaOnDisplayToOrderSettings; + /** + * The POS data provider linked with this country. + */ + posDataProvider?: Schema$LiaPosDataProvider; /** * The status of the "Store pickup" feature. */ @@ -1596,6 +1634,16 @@ export namespace content_v2 { */ status?: string; } + export interface Schema$LiaPosDataProvider { + /** + * The ID of the POS data provider. + */ + posDataProviderId?: string; + /** + * The account ID by which this merchant is known to the POS data provider. + */ + posExternalAccountId?: string; + } export interface Schema$LiaSettings { /** * The ID of the account to which these LIA settings belong. Ignored upon @@ -1716,6 +1764,17 @@ export namespace content_v2 { */ kind?: string; } + export interface Schema$LiasettingsListPosDataProvidersResponse { + /** + * Identifies what kind of resource this is. Value: the fixed string + * "content#liasettingsListPosDataProvidersResponse". + */ + kind?: string; + /** + * The list of POS data providers for each eligible country + */ + posDataProviders?: Schema$PosDataProviders[]; + } export interface Schema$LiasettingsListResponse { /** * Identifies what kind of resource this is. Value: the fixed string @@ -1749,6 +1808,13 @@ export namespace content_v2 { */ kind?: string; } + export interface Schema$LiasettingsSetPosDataProviderResponse { + /** + * Identifies what kind of resource this is. Value: the fixed string + * "content#liasettingsSetPosDataProviderResponse". + */ + kind?: string; + } export interface Schema$LocationIdSet { /** * A non-empty list of location IDs. They must all be of the same location @@ -4689,6 +4755,11 @@ export namespace content_v2 { * enough. Can only be set if singleValue is not set. */ mainTable?: Schema$Table; + /** + * Name of the rate group. Optional. If set has to be unique within shipping + * service. + */ + name?: string; /** * The value of the rate group (e.g. flat rate $10). Can only be set if * mainTable and subtables are not set. @@ -4923,6 +4994,10 @@ export namespace content_v2 { * The details of the customer who placed the order. */ customer?: Schema$TestOrderCustomer; + /** + * Whether the orderinvoices service should support this order. + */ + enableOrderinvoices?: boolean; /** * Identifies what kind of resource this is. Value: the fixed string * "content#testOrder". @@ -6084,7 +6159,8 @@ export namespace content_v2 { /** * content.accountstatuses.get - * @desc Retrieves the status of a Merchant Center account. + * @desc Retrieves the status of a Merchant Center account. Multi-client + * accounts can only call this method for sub-accounts. * @alias content.accountstatuses.get * @memberOf! () * @@ -8286,6 +8362,81 @@ export namespace content_v2 { } + /** + * content.liasettings.listposdataproviders + * @desc Retrieves the list of POS data providers that have active settings + * for the all eiligible countries. + * @alias content.liasettings.listposdataproviders + * @memberOf! () + * + * @param {object=} params Parameters for request + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + listposdataproviders( + params?: Params$Resource$Liasettings$Listposdataproviders, + options?: MethodOptions): + AxiosPromise; + listposdataproviders( + params: Params$Resource$Liasettings$Listposdataproviders, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback< + Schema$LiasettingsListPosDataProvidersResponse>): void; + listposdataproviders( + params: Params$Resource$Liasettings$Listposdataproviders, + callback: BodyResponseCallback< + Schema$LiasettingsListPosDataProvidersResponse>): void; + listposdataproviders(callback: BodyResponseCallback< + Schema$LiasettingsListPosDataProvidersResponse>): void; + listposdataproviders( + paramsOrCallback?: Params$Resource$Liasettings$Listposdataproviders| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback< + Schema$LiasettingsListPosDataProvidersResponse>): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Liasettings$Listposdataproviders; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Liasettings$Listposdataproviders; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/content/v2/liasettings/posdataproviders') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'GET' + }, + options), + params, + requiredParams: [], + pathParams: [], + context: this.getRoot() + }; + if (callback) { + createAPIRequest( + parameters, callback); + } else { + return createAPIRequest( + parameters); + } + } + + /** * content.liasettings.patch * @desc Updates the LIA settings of the account. This method supports patch @@ -8612,6 +8763,91 @@ export namespace content_v2 { } + /** + * content.liasettings.setposdataprovider + * @desc Sets the POS data provider for the specified country. + * @alias content.liasettings.setposdataprovider + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.accountId The ID of the account for which to retrieve accessible Google My Business accounts. + * @param {string=} params.country The country for which the POS data provider is selected. + * @param {string} params.merchantId The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and accountId must be the ID of a sub-account of this account. + * @param {string=} params.posDataProviderId The ID of POS data provider. + * @param {string=} params.posExternalAccountId The account ID by which this merchant is known to the POS data provider. + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + setposdataprovider( + params?: Params$Resource$Liasettings$Setposdataprovider, + options?: MethodOptions): + AxiosPromise; + setposdataprovider( + params: Params$Resource$Liasettings$Setposdataprovider, + options: MethodOptions| + BodyResponseCallback, + callback: + BodyResponseCallback): + void; + setposdataprovider( + params: Params$Resource$Liasettings$Setposdataprovider, + callback: + BodyResponseCallback): + void; + setposdataprovider( + callback: + BodyResponseCallback): + void; + setposdataprovider( + paramsOrCallback?: Params$Resource$Liasettings$Setposdataprovider| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: + BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Liasettings$Setposdataprovider; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Liasettings$Setposdataprovider; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: + (rootUrl + + '/content/v2/{merchantId}/liasettings/{accountId}/setposdataprovider') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'POST' + }, + options), + params, + requiredParams: ['merchantId', 'accountId'], + pathParams: ['accountId', 'merchantId'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest( + parameters, callback); + } else { + return createAPIRequest( + parameters); + } + } + + /** * content.liasettings.update * @desc Updates the LIA settings of the account. @@ -8754,6 +8990,12 @@ export namespace content_v2 { */ pageToken?: string; } + export interface Params$Resource$Liasettings$Listposdataproviders { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } export interface Params$Resource$Liasettings$Patch { /** * Auth client or API Key for the request @@ -8857,6 +9099,36 @@ export namespace content_v2 { */ merchantId?: string; } + export interface Params$Resource$Liasettings$Setposdataprovider { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the account for which to retrieve accessible Google My Business + * accounts. + */ + accountId?: string; + /** + * The country for which the POS data provider is selected. + */ + country?: string; + /** + * The ID of the managing account. If this parameter is not the same as + * accountId, then this account must be a multi-client account and accountId + * must be the ID of a sub-account of this account. + */ + merchantId?: string; + /** + * The ID of POS data provider. + */ + posDataProviderId?: string; + /** + * The account ID by which this merchant is known to the POS data provider. + */ + posExternalAccountId?: string; + } export interface Params$Resource$Liasettings$Update { /** * Auth client or API Key for the request diff --git a/src/apis/content/v2sandbox.ts b/src/apis/content/v2sandbox.ts index b6f07c309bf..e9f1614a46e 100644 --- a/src/apis/content/v2sandbox.ts +++ b/src/apis/content/v2sandbox.ts @@ -1907,6 +1907,10 @@ export namespace content_v2sandbox { * The details of the customer who placed the order. */ customer?: Schema$TestOrderCustomer; + /** + * Whether the orderinvoices service should support this order. + */ + enableOrderinvoices?: boolean; /** * Identifies what kind of resource this is. Value: the fixed string * "content#testOrder". diff --git a/src/apis/dataproc/v1.ts b/src/apis/dataproc/v1.ts index 5020689a145..c90f4761bf1 100644 --- a/src/apis/dataproc/v1.ts +++ b/src/apis/dataproc/v1.ts @@ -203,6 +203,23 @@ export namespace dataproc_v1 { */ yarnMetrics?: any; } + /** + * The cluster operation triggered by a workflow. + */ + export interface Schema$ClusterOperation { + /** + * Output only. Indicates the operation is done. + */ + done?: boolean; + /** + * Output only. Error, if operation failed. + */ + error?: string; + /** + * Output only. The id of the cluster operation. + */ + operationId?: string; + } /** * Metadata describing the operation. */ @@ -305,6 +322,12 @@ export namespace dataproc_v1 { * Optional. Size in GB of the boot disk (default is 500GB). */ bootDiskSizeGb?: number; + /** + * Optional. Type of the boot disk (default is "pd-standard"). + * Valid values: "pd-ssd" (Persistent Disk Solid State Drive) or + * "pd-standard" (Persistent Disk Hard Disk Drive). + */ + bootDiskType?: string; /** * Optional. Number of attached SSDs, from 0 to 4 (default is 0). If SSDs * are not attached, the boot disk is used to store runtime logs and HDFS @@ -1094,6 +1117,78 @@ export namespace dataproc_v1 { */ requestId?: string; } + /** + * The workflow graph. + */ + export interface Schema$WorkflowGraph { + /** + * Output only. The workflow nodes. + */ + nodes?: Schema$WorkflowNode[]; + } + /** + * A Cloud Dataproc workflow template resource. + */ + export interface Schema$WorkflowMetadata { + /** + * Output only. The name of the managed cluster. + */ + clusterName?: string; + /** + * Output only. The create cluster operation metadata. + */ + createCluster?: Schema$ClusterOperation; + /** + * Output only. The delete cluster operation metadata. + */ + deleteCluster?: Schema$ClusterOperation; + /** + * Output only. The workflow graph. + */ + graph?: Schema$WorkflowGraph; + /** + * Map from parameter names to values that were used for those parameters. + */ + parameters?: any; + /** + * Output only. The workflow state. + */ + state?: string; + /** + * Output only. The "resource name" of the template. + */ + template?: string; + /** + * Output only. The version of template at the time of workflow + * instantiation. + */ + version?: number; + } + /** + * The workflow node. + */ + export interface Schema$WorkflowNode { + /** + * Output only. The error detail. + */ + error?: string; + /** + * Output only. The job id; populated after the node enters RUNNING state. + */ + jobId?: string; + /** + * Output only. Node's prerequisite nodes. + */ + prerequisiteStepIds?: string[]; + /** + * Output only. The node state. + */ + state?: string; + /** + * Output only. The name of the node. + */ + stepId?: string; + } /** * A YARN application created by a job. Application information is a subset of * <code>org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto</code>.Beta diff --git a/src/apis/dataproc/v1beta2.ts b/src/apis/dataproc/v1beta2.ts index 06f76864b4b..37968172f92 100644 --- a/src/apis/dataproc/v1beta2.ts +++ b/src/apis/dataproc/v1beta2.ts @@ -179,6 +179,10 @@ export namespace dataproc_v1beta2 { * manage this project-level, per-location bucket for you. */ configBucket?: string; + /** + * Optional. Encryption settings for the cluster. + */ + encryptionConfig?: Schema$EncryptionConfig; /** * Required. The shared Compute Engine config settings for all instances in * a cluster. @@ -391,6 +395,16 @@ export namespace dataproc_v1beta2 { * representation for Empty is empty JSON object {}. */ export interface Schema$Empty {} + /** + * Encryption settings for the cluster. + */ + export interface Schema$EncryptionConfig { + /** + * Optional. The Cloud KMS key name to use for PD disk encryption for all + * instances in the cluster. + */ + gcePdKmsKeyName?: string; + } /** * Common config settings for resources of Compute Engine cluster instances, * applicable to all instances in the cluster. diff --git a/src/apis/deploymentmanager/alpha.ts b/src/apis/deploymentmanager/alpha.ts index c4bcfbf0262..a6d3d5d29a0 100644 --- a/src/apis/deploymentmanager/alpha.ts +++ b/src/apis/deploymentmanager/alpha.ts @@ -3970,7 +3970,7 @@ export namespace deploymentmanager_alpha { * * @param {object} params Parameters for request * @param {string} params.project The project ID for this request. - * @param {string} params.type The name of the type provider for this request. + * @param {string} params.type The name of the type provider type for this request. * @param {string} params.typeProvider The name of the type provider for this request. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. @@ -4442,7 +4442,7 @@ export namespace deploymentmanager_alpha { */ project?: string; /** - * The name of the type provider for this request. + * The name of the type provider type for this request. */ type?: string; /** diff --git a/src/apis/deploymentmanager/v2beta.ts b/src/apis/deploymentmanager/v2beta.ts index d72058cfc49..5595daafe43 100644 --- a/src/apis/deploymentmanager/v2beta.ts +++ b/src/apis/deploymentmanager/v2beta.ts @@ -3902,7 +3902,7 @@ export namespace deploymentmanager_v2beta { * * @param {object} params Parameters for request * @param {string} params.project The project ID for this request. - * @param {string} params.type The name of the type provider for this request. + * @param {string} params.type The name of the type provider type for this request. * @param {string} params.typeProvider The name of the type provider for this request. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. @@ -4374,7 +4374,7 @@ export namespace deploymentmanager_v2beta { */ project?: string; /** - * The name of the type provider for this request. + * The name of the type provider type for this request. */ type?: string; /** diff --git a/src/apis/dialogflow/v2.ts b/src/apis/dialogflow/v2.ts index 3527631a9f2..55369e5d6ab 100644 --- a/src/apis/dialogflow/v2.ts +++ b/src/apis/dialogflow/v2.ts @@ -421,7 +421,7 @@ export namespace dialogflow_v2 { /** * Represents an intent. Intents convert a number of user expressions or * patterns into an action. An action is an extraction of a user command or - * sentence semantics. + * sentence semantics. Next available field number: 22. */ export interface Schema$GoogleCloudDialogflowV2beta1Intent { /** @@ -1383,7 +1383,7 @@ export namespace dialogflow_v2 { /** * Represents an intent. Intents convert a number of user expressions or * patterns into an action. An action is an extraction of a user command or - * sentence semantics. + * sentence semantics. Next available field number: 22. */ export interface Schema$GoogleCloudDialogflowV2Intent { /** diff --git a/src/apis/dialogflow/v2beta1.ts b/src/apis/dialogflow/v2beta1.ts index e56e490a7ec..e302fcfd0ea 100644 --- a/src/apis/dialogflow/v2beta1.ts +++ b/src/apis/dialogflow/v2beta1.ts @@ -536,7 +536,7 @@ export namespace dialogflow_v2beta1 { /** * Represents an intent. Intents convert a number of user expressions or * patterns into an action. An action is an extraction of a user command or - * sentence semantics. + * sentence semantics. Next available field number: 22. */ export interface Schema$GoogleCloudDialogflowV2beta1Intent { /** @@ -1597,7 +1597,7 @@ export namespace dialogflow_v2beta1 { /** * Represents an intent. Intents convert a number of user expressions or * patterns into an action. An action is an extraction of a user command or - * sentence semantics. + * sentence semantics. Next available field number: 22. */ export interface Schema$GoogleCloudDialogflowV2Intent { /** @@ -4120,7 +4120,7 @@ import(paramsOrCallback?: Params$Resource$Projects$Agent$Import|BodyResponseCall * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.session Required. The name of the session this query is sent to. Format: `projects//agent/sessions/`, or `projects//agent/environments//users//sessions/`. Note: Environments and users are under construction and will be available soon. If is not specified, we assume default 'draft' environment. If is not specified, we are using "-". It’s up to the API caller to choose an appropriate . and . They can be a random numbers or some type of user and session identifiers (preferably hashed). The length of the and must not exceed 36 characters. + * @param {string} params.session Required. The name of the session this query is sent to. Format: `projects//agent/sessions/`, or `projects//agent/environments//users//sessions/`. Note: Environments and users are under construction and will be available soon. If is not specified, we assume default 'draft' environment. If is not specified, we are using "-". It’s up to the API caller to choose an appropriate and . They can be a random numbers or some type of user and session identifiers (preferably hashed). The length of the and must not exceed 36 characters. * @param {().GoogleCloudDialogflowV2beta1DetectIntentRequest} params.resource Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. @@ -4229,7 +4229,7 @@ import(paramsOrCallback?: Params$Resource$Projects$Agent$Import|BodyResponseCall * construction and will be available soon. If is not * specified, we assume default 'draft' environment. If is not * specified, we are using "-". It’s up to the API caller to choose an - * appropriate . and . They can be a random numbers or + * appropriate and . They can be a random numbers or * some type of user and session identifiers (preferably hashed). The length * of the and must not exceed 36 characters. */ @@ -6117,7 +6117,7 @@ import(paramsOrCallback?: Params$Resource$Projects$Agent$Import|BodyResponseCall * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.session Required. The name of the session this query is sent to. Format: `projects//agent/sessions/`, or `projects//agent/environments//users//sessions/`. Note: Environments and users are under construction and will be available soon. If is not specified, we assume default 'draft' environment. If is not specified, we are using "-". It’s up to the API caller to choose an appropriate . and . They can be a random numbers or some type of user and session identifiers (preferably hashed). The length of the and must not exceed 36 characters. + * @param {string} params.session Required. The name of the session this query is sent to. Format: `projects//agent/sessions/`, or `projects//agent/environments//users//sessions/`. Note: Environments and users are under construction and will be available soon. If is not specified, we assume default 'draft' environment. If is not specified, we are using "-". It’s up to the API caller to choose an appropriate and . They can be a random numbers or some type of user and session identifiers (preferably hashed). The length of the and must not exceed 36 characters. * @param {().GoogleCloudDialogflowV2beta1DetectIntentRequest} params.resource Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. @@ -6221,7 +6221,7 @@ import(paramsOrCallback?: Params$Resource$Projects$Agent$Import|BodyResponseCall * construction and will be available soon. If is not * specified, we assume default 'draft' environment. If is not * specified, we are using "-". It’s up to the API caller to choose an - * appropriate . and . They can be a random numbers or + * appropriate and . They can be a random numbers or * some type of user and session identifiers (preferably hashed). The length * of the and must not exceed 36 characters. */ diff --git a/src/apis/dlp/v2.ts b/src/apis/dlp/v2.ts index 2eb31707a26..c1972c44421 100644 --- a/src/apis/dlp/v2.ts +++ b/src/apis/dlp/v2.ts @@ -72,7 +72,8 @@ export namespace dlp_v2 { } /** - * A task to execute on the completion of a job. + * A task to execute on the completion of a job. See + * https://cloud.google.com/dlp/docs/concepts-actions to learn more. */ export interface Schema$GooglePrivacyDlpV2Action { /** @@ -236,7 +237,8 @@ export namespace dlp_v2 { * can be used on data of type: number, long, string, timestamp. If the bound * `Value` type differs from the type of data being transformed, we will first * attempt converting the type of the data to be transformed to match the type - * of the bound before comparing. + * of the bound before comparing. See + * https://cloud.google.com/dlp/docs/concepts-bucketing to learn more. */ export interface Schema$GooglePrivacyDlpV2BucketingConfig { /** @@ -443,7 +445,9 @@ export namespace dlp_v2 { */ byteItem?: Schema$GooglePrivacyDlpV2ByteContentItem; /** - * Structured content for inspection. + * Structured content for inspection. See + * https://cloud.google.com/dlp/docs/inspecting-text#inspecting_a_table to + * learn more. */ table?: Schema$GooglePrivacyDlpV2Table; /** @@ -582,7 +586,7 @@ export namespace dlp_v2 { * crypto key and context, the same identifier will be replaced with the same * surrogate. Identifiers must be at least two characters long. In the case * that the identifier is the empty string, it will be skipped. See - * [Pseudonymization](/dlp/docs/pseudonymization) for example usage. + * https://cloud.google.com/dlp/docs/pseudonymization to learn more. */ export interface Schema$GooglePrivacyDlpV2CryptoReplaceFfxFpeConfig { commonAlphabet?: string; @@ -702,7 +706,8 @@ export namespace dlp_v2 { } /** * Shifts dates by random number of days, with option to be consistent for the - * same context. + * same context. See https://cloud.google.com/dlp/docs/concepts-date-shifting + * to learn more. */ export interface Schema$GooglePrivacyDlpV2DateShiftConfig { /** @@ -809,6 +814,7 @@ export namespace dlp_v2 { } /** * The DeidentifyTemplates contains instructions on how to deidentify content. + * See https://cloud.google.com/dlp/docs/concepts-templates to learn more. */ export interface Schema$GooglePrivacyDlpV2DeidentifyTemplate { /** @@ -1173,7 +1179,8 @@ export namespace dlp_v2 { * with "10-20". This can be used on data of type: double, long. If * the bound Value type differs from the type of data being transformed, we * will first attempt converting the type of the data to be transformed to - * match the type of the bound before comparing. + * match the type of the bound before comparing. See + * https://cloud.google.com/dlp/docs/concepts-bucketing to learn more. */ export interface Schema$GooglePrivacyDlpV2FixedSizeBucketingConfig { /** @@ -1246,7 +1253,7 @@ export namespace dlp_v2 { infoType?: Schema$GooglePrivacyDlpV2InfoType; /** * If true, all text found in the image, regardless whether it matches an - * info_type, is redacted. + * info_type, is redacted. Only one should be provided. */ redactAllText?: boolean; /** @@ -1320,8 +1327,9 @@ export namespace dlp_v2 { */ export interface Schema$GooglePrivacyDlpV2InfoTypeTransformation { /** - * InfoTypes to apply the transformation to. Empty list will match all - * available infoTypes for this transformation. + * InfoTypes to apply the transformation to. An empty list will cause this + * transformation to apply to all findings that correspond to infoTypes that + * were requested in `InspectConfig`. */ infoTypes?: Schema$GooglePrivacyDlpV2InfoType[]; /** @@ -1352,7 +1360,9 @@ export namespace dlp_v2 { */ contentOptions?: string[]; /** - * Custom infoTypes provided by the user. + * CustomInfoTypes provided by the user. See + * https://cloud.google.com/dlp/docs/creating-custom-infotypes to learn + * more. */ customInfoTypes?: Schema$GooglePrivacyDlpV2CustomInfoType[]; /** @@ -1373,7 +1383,7 @@ export namespace dlp_v2 { limits?: Schema$GooglePrivacyDlpV2FindingLimits; /** * Only returns findings equal or above this threshold. The default is - * POSSIBLE. + * POSSIBLE. See https://cloud.google.com/dlp/docs/likelihood to learn more. */ minLikelihood?: string; } @@ -1463,7 +1473,8 @@ export namespace dlp_v2 { /** * The inspectTemplate contains a configuration (set of types of sensitive * data to be detected) to be used anywhere you otherwise would normally - * specify InspectConfig. + * specify InspectConfig. See + * https://cloud.google.com/dlp/docs/concepts-templates to learn more. */ export interface Schema$GooglePrivacyDlpV2InspectTemplate { /** @@ -1494,7 +1505,8 @@ export namespace dlp_v2 { updateTime?: string; } /** - * Contains a configuration to make dlp api calls on a repeating basis. + * Contains a configuration to make dlp api calls on a repeating basis. See + * https://cloud.google.com/dlp/docs/concepts-job-triggers to learn more. */ export interface Schema$GooglePrivacyDlpV2JobTrigger { /** @@ -1964,21 +1976,27 @@ export namespace dlp_v2 { */ export interface Schema$GooglePrivacyDlpV2OutputStorageConfig { /** - * Schema used for writing the findings. Columns are derived from the - * `Finding` object. If appending to an existing table, any columns from the - * predefined schema that are missing will be added. No columns in the - * existing table will be deleted. If unspecified, then all available - * columns will be used for a new table, and no changes will be made to an - * existing table. + * Schema used for writing the findings for Inspect jobs. This field is only + * used for Inspect and must be unspecified for Risk jobs. Columns are + * derived from the `Finding` object. If appending to an existing table, any + * columns from the predefined schema that are missing will be added. No + * columns in the existing table will be deleted. If unspecified, then all + * available columns will be used for a new table, and no changes will be + * made to an existing table. */ outputSchema?: string; /** * Store findings in an existing table or a new table in an existing - * dataset. Each column in an existing table must have the same name, type, - * and mode of a field in the `Finding` object. If table_id is not set a new - * one will be generated for you with the following format: - * dlp_googleapis_yyyy_mm_dd_[dlp_job_id]. Pacific timezone will be used for - * generating the date details. + * dataset. If table_id is not set a new one will be generated for you with + * the following format: dlp_googleapis_yyyy_mm_dd_[dlp_job_id]. Pacific + * timezone will be used for generating the date details. For Inspect, each + * column in an existing output table must have the same name, type, and + * mode of a field in the `Finding` object. For Risk, an existing output + * table should be the output of a previous Risk analysis job run on the + * same source table, with the same privacy metric and quasi-identifiers. + * Risk jobs that analyze the same table but compute a different privacy + * metric, or use different sets of quasi-identifiers, cannot store their + * results in the same table. */ table?: Schema$GooglePrivacyDlpV2BigQueryTable; } @@ -2219,8 +2237,8 @@ export namespace dlp_v2 { */ export interface Schema$GooglePrivacyDlpV2RedactConfig {} /** - * Request to search for potentially sensitive info in a list of items and - * replace it with a default or provided content. + * Request to search for potentially sensitive info in an image and redact it + * by covering it with a colored rectangle. */ export interface Schema$GooglePrivacyDlpV2RedactImageRequest { /** @@ -2350,7 +2368,8 @@ export namespace dlp_v2 { totalEstimatedBytes?: string; } /** - * Configuration for a risk analysis job. + * Configuration for a risk analysis job. See + * https://cloud.google.com/dlp/docs/concepts-risk-analysis to learn more. */ export interface Schema$GooglePrivacyDlpV2RiskAnalysisJobConfig { /** @@ -2373,7 +2392,7 @@ export namespace dlp_v2 { /** * If set, the detailed findings will be persisted to the specified * OutputStorageConfig. Only a single instance of this action can be - * specified. Compatible with: Inspect + * specified. Compatible with: Inspect, Risk */ export interface Schema$GooglePrivacyDlpV2SaveFindings { outputConfig?: Schema$GooglePrivacyDlpV2OutputStorageConfig; @@ -2384,10 +2403,10 @@ export namespace dlp_v2 { export interface Schema$GooglePrivacyDlpV2Schedule { /** * With this option a job is started a regular periodic basis. For example: - * every 10 minutes. A scheduled start time will be skipped if the previous - * execution has not ended when its scheduled time occurs. This value must - * be set to a time duration greater than or equal to 60 minutes and can be - * no longer than 60 days. + * every day (86400 seconds). A scheduled start time will be skipped if the + * previous execution has not ended when its scheduled time occurs. This + * value must be set to a time duration greater than or equal to 1 day and + * can be no longer than 60 days. */ recurrencePeriodDuration?: string; } @@ -2458,6 +2477,8 @@ export namespace dlp_v2 { export interface Schema$GooglePrivacyDlpV2SurrogateType {} /** * Structured content to inspect. Up to 50,000 `Value`s per request allowed. + * See https://cloud.google.com/dlp/docs/inspecting-text#inspecting_a_table to + * learn more. */ export interface Schema$GooglePrivacyDlpV2Table { headers?: Schema$GooglePrivacyDlpV2FieldId[]; @@ -2832,8 +2853,8 @@ export namespace dlp_v2 { /** * dlp.infoTypes.list * @desc Returns a list of the sensitive information types that the DLP API - * supports. For more information, see [Listing supported predefined - * infoTypes](/dlp/docs/listing-infotypes). + * supports. See https://cloud.google.com/dlp/docs/infotypes-reference to + * learn more. * @alias dlp.infoTypes.list * @memberOf! () * @@ -2956,7 +2977,8 @@ export namespace dlp_v2 { /** * dlp.organizations.deidentifyTemplates.create * @desc Creates a DeidentifyTemplate for re-using frequently used - * configuration for de-identifying content, images, and storage. + * configuration for de-identifying content, images, and storage. See + * https://cloud.google.com/dlp/docs/creating-templates-deid to learn more. * @alias dlp.organizations.deidentifyTemplates.create * @memberOf! () * @@ -3037,7 +3059,8 @@ export namespace dlp_v2 { /** * dlp.organizations.deidentifyTemplates.delete - * @desc Deletes a DeidentifyTemplate. + * @desc Deletes a DeidentifyTemplate. See + * https://cloud.google.com/dlp/docs/creating-templates-deid to learn more. * @alias dlp.organizations.deidentifyTemplates.delete * @memberOf! () * @@ -3104,7 +3127,8 @@ export namespace dlp_v2 { /** * dlp.organizations.deidentifyTemplates.get - * @desc Gets a DeidentifyTemplate. + * @desc Gets a DeidentifyTemplate. See + * https://cloud.google.com/dlp/docs/creating-templates-deid to learn more. * @alias dlp.organizations.deidentifyTemplates.get * @memberOf! () * @@ -3178,7 +3202,8 @@ export namespace dlp_v2 { /** * dlp.organizations.deidentifyTemplates.list - * @desc Lists DeidentifyTemplates. + * @desc Lists DeidentifyTemplates. See + * https://cloud.google.com/dlp/docs/creating-templates-deid to learn more. * @alias dlp.organizations.deidentifyTemplates.list * @memberOf! () * @@ -3259,7 +3284,8 @@ export namespace dlp_v2 { /** * dlp.organizations.deidentifyTemplates.patch - * @desc Updates the DeidentifyTemplate. + * @desc Updates the DeidentifyTemplate. See + * https://cloud.google.com/dlp/docs/creating-templates-deid to learn more. * @alias dlp.organizations.deidentifyTemplates.patch * @memberOf! () * @@ -3437,7 +3463,8 @@ export namespace dlp_v2 { /** * dlp.organizations.inspectTemplates.create * @desc Creates an InspectTemplate for re-using frequently used - * configuration for inspecting content, images, and storage. + * configuration for inspecting content, images, and storage. See + * https://cloud.google.com/dlp/docs/creating-templates to learn more. * @alias dlp.organizations.inspectTemplates.create * @memberOf! () * @@ -3517,7 +3544,8 @@ export namespace dlp_v2 { /** * dlp.organizations.inspectTemplates.delete - * @desc Deletes an InspectTemplate. + * @desc Deletes an InspectTemplate. See + * https://cloud.google.com/dlp/docs/creating-templates to learn more. * @alias dlp.organizations.inspectTemplates.delete * @memberOf! () * @@ -3584,7 +3612,8 @@ export namespace dlp_v2 { /** * dlp.organizations.inspectTemplates.get - * @desc Gets an InspectTemplate. + * @desc Gets an InspectTemplate. See + * https://cloud.google.com/dlp/docs/creating-templates to learn more. * @alias dlp.organizations.inspectTemplates.get * @memberOf! () * @@ -3657,7 +3686,8 @@ export namespace dlp_v2 { /** * dlp.organizations.inspectTemplates.list - * @desc Lists InspectTemplates. + * @desc Lists InspectTemplates. See + * https://cloud.google.com/dlp/docs/creating-templates to learn more. * @alias dlp.organizations.inspectTemplates.list * @memberOf! () * @@ -3735,7 +3765,8 @@ export namespace dlp_v2 { /** * dlp.organizations.inspectTemplates.patch - * @desc Updates the InspectTemplate. + * @desc Updates the InspectTemplate. See + * https://cloud.google.com/dlp/docs/creating-templates to learn more. * @alias dlp.organizations.inspectTemplates.patch * @memberOf! () * @@ -3938,8 +3969,9 @@ export namespace dlp_v2 { /** * dlp.projects.content.deidentify * @desc De-identifies potentially sensitive info from a ContentItem. This - * method has limits on input size and output size. [How-to - * guide](/dlp/docs/deidentify-sensitive-data) + * method has limits on input size and output size. See + * https://cloud.google.com/dlp/docs/deidentify-sensitive-data to learn + * more. * @alias dlp.projects.content.deidentify * @memberOf! () * @@ -4017,9 +4049,9 @@ export namespace dlp_v2 { /** * dlp.projects.content.inspect * @desc Finds potentially sensitive info in content. This method has limits - * on input size, processing time, and output size. [How-to guide for - * text](/dlp/docs/inspecting-text), [How-to guide for - * images](/dlp/docs/inspecting-images) + * on input size, processing time, and output size. For how to guides, see + * https://cloud.google.com/dlp/docs/inspecting-images and + * https://cloud.google.com/dlp/docs/inspecting-text, * @alias dlp.projects.content.inspect * @memberOf! () * @@ -4095,7 +4127,9 @@ export namespace dlp_v2 { /** * dlp.projects.content.reidentify - * @desc Re-identifies content that has been de-identified. + * @desc Re-identifies content that has been de-identified. See + * https://cloud.google.com/dlp/docs/pseudonymization#re-identification_in_free_text_code_example + * to learn more. * @alias dlp.projects.content.reidentify * @memberOf! () * @@ -4235,7 +4269,8 @@ export namespace dlp_v2 { /** * dlp.projects.deidentifyTemplates.create * @desc Creates a DeidentifyTemplate for re-using frequently used - * configuration for de-identifying content, images, and storage. + * configuration for de-identifying content, images, and storage. See + * https://cloud.google.com/dlp/docs/creating-templates-deid to learn more. * @alias dlp.projects.deidentifyTemplates.create * @memberOf! () * @@ -4315,7 +4350,8 @@ export namespace dlp_v2 { /** * dlp.projects.deidentifyTemplates.delete - * @desc Deletes a DeidentifyTemplate. + * @desc Deletes a DeidentifyTemplate. See + * https://cloud.google.com/dlp/docs/creating-templates-deid to learn more. * @alias dlp.projects.deidentifyTemplates.delete * @memberOf! () * @@ -4381,7 +4417,8 @@ export namespace dlp_v2 { /** * dlp.projects.deidentifyTemplates.get - * @desc Gets a DeidentifyTemplate. + * @desc Gets a DeidentifyTemplate. See + * https://cloud.google.com/dlp/docs/creating-templates-deid to learn more. * @alias dlp.projects.deidentifyTemplates.get * @memberOf! () * @@ -4454,7 +4491,8 @@ export namespace dlp_v2 { /** * dlp.projects.deidentifyTemplates.list - * @desc Lists DeidentifyTemplates. + * @desc Lists DeidentifyTemplates. See + * https://cloud.google.com/dlp/docs/creating-templates-deid to learn more. * @alias dlp.projects.deidentifyTemplates.list * @memberOf! () * @@ -4534,7 +4572,8 @@ export namespace dlp_v2 { /** * dlp.projects.deidentifyTemplates.patch - * @desc Updates the DeidentifyTemplate. + * @desc Updates the DeidentifyTemplate. See + * https://cloud.google.com/dlp/docs/creating-templates-deid to learn more. * @alias dlp.projects.deidentifyTemplates.patch * @memberOf! () * @@ -4712,7 +4751,8 @@ export namespace dlp_v2 { * dlp.projects.dlpJobs.cancel * @desc Starts asynchronous cancellation on a long-running DlpJob. The * server makes a best effort to cancel the DlpJob, but success is not - * guaranteed. + * guaranteed. See https://cloud.google.com/dlp/docs/inspecting-storage and + * https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. * @alias dlp.projects.dlpJobs.cancel * @memberOf! () * @@ -4780,8 +4820,9 @@ export namespace dlp_v2 { /** * dlp.projects.dlpJobs.create - * @desc Creates a new job to inspect storage or calculate risk metrics. - * [How-to guide](/dlp/docs/compute-risk-analysis). + * @desc Creates a new job to inspect storage or calculate risk metrics. See + * https://cloud.google.com/dlp/docs/inspecting-storage and + * https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. * @alias dlp.projects.dlpJobs.create * @memberOf! () * @@ -4853,7 +4894,9 @@ export namespace dlp_v2 { * dlp.projects.dlpJobs.delete * @desc Deletes a long-running DlpJob. This method indicates that the * client is no longer interested in the DlpJob result. The job will be - * cancelled if possible. + * cancelled if possible. See + * https://cloud.google.com/dlp/docs/inspecting-storage and + * https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. * @alias dlp.projects.dlpJobs.delete * @memberOf! () * @@ -4919,7 +4962,9 @@ export namespace dlp_v2 { /** * dlp.projects.dlpJobs.get - * @desc Gets the latest state of a long-running DlpJob. + * @desc Gets the latest state of a long-running DlpJob. See + * https://cloud.google.com/dlp/docs/inspecting-storage and + * https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. * @alias dlp.projects.dlpJobs.get * @memberOf! () * @@ -4982,7 +5027,9 @@ export namespace dlp_v2 { /** * dlp.projects.dlpJobs.list - * @desc Lists DlpJobs that match the specified filter in the request. + * @desc Lists DlpJobs that match the specified filter in the request. See + * https://cloud.google.com/dlp/docs/inspecting-storage and + * https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. * @alias dlp.projects.dlpJobs.list * @memberOf! () * @@ -5174,8 +5221,9 @@ export namespace dlp_v2 { /** * dlp.projects.image.redact * @desc Redacts potentially sensitive info from an image. This method has - * limits on input size, processing time, and output size. [How-to - * guide](/dlp/docs/redacting-sensitive-data-images) + * limits on input size, processing time, and output size. See + * https://cloud.google.com/dlp/docs/redacting-sensitive-data-images to + * learn more. * @alias dlp.projects.image.redact * @memberOf! () * @@ -5286,7 +5334,8 @@ export namespace dlp_v2 { /** * dlp.projects.inspectTemplates.create * @desc Creates an InspectTemplate for re-using frequently used - * configuration for inspecting content, images, and storage. + * configuration for inspecting content, images, and storage. See + * https://cloud.google.com/dlp/docs/creating-templates to learn more. * @alias dlp.projects.inspectTemplates.create * @memberOf! () * @@ -5365,7 +5414,8 @@ export namespace dlp_v2 { /** * dlp.projects.inspectTemplates.delete - * @desc Deletes an InspectTemplate. + * @desc Deletes an InspectTemplate. See + * https://cloud.google.com/dlp/docs/creating-templates to learn more. * @alias dlp.projects.inspectTemplates.delete * @memberOf! () * @@ -5431,7 +5481,8 @@ export namespace dlp_v2 { /** * dlp.projects.inspectTemplates.get - * @desc Gets an InspectTemplate. + * @desc Gets an InspectTemplate. See + * https://cloud.google.com/dlp/docs/creating-templates to learn more. * @alias dlp.projects.inspectTemplates.get * @memberOf! () * @@ -5504,7 +5555,8 @@ export namespace dlp_v2 { /** * dlp.projects.inspectTemplates.list - * @desc Lists InspectTemplates. + * @desc Lists InspectTemplates. See + * https://cloud.google.com/dlp/docs/creating-templates to learn more. * @alias dlp.projects.inspectTemplates.list * @memberOf! () * @@ -5582,7 +5634,8 @@ export namespace dlp_v2 { /** * dlp.projects.inspectTemplates.patch - * @desc Updates the InspectTemplate. + * @desc Updates the InspectTemplate. See + * https://cloud.google.com/dlp/docs/creating-templates to learn more. * @alias dlp.projects.inspectTemplates.patch * @memberOf! () * @@ -5758,7 +5811,8 @@ export namespace dlp_v2 { /** * dlp.projects.jobTriggers.create * @desc Creates a job trigger to run DLP actions such as scanning storage - * for sensitive information on a set schedule. + * for sensitive information on a set schedule. See + * https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. * @alias dlp.projects.jobTriggers.create * @memberOf! () * @@ -5833,7 +5887,8 @@ export namespace dlp_v2 { /** * dlp.projects.jobTriggers.delete - * @desc Deletes a job trigger. + * @desc Deletes a job trigger. See + * https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. * @alias dlp.projects.jobTriggers.delete * @memberOf! () * @@ -5899,7 +5954,8 @@ export namespace dlp_v2 { /** * dlp.projects.jobTriggers.get - * @desc Gets a job trigger. + * @desc Gets a job trigger. See + * https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. * @alias dlp.projects.jobTriggers.get * @memberOf! () * @@ -5968,15 +6024,16 @@ export namespace dlp_v2 { /** * dlp.projects.jobTriggers.list - * @desc Lists job triggers. + * @desc Lists job triggers. See + * https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. * @alias dlp.projects.jobTriggers.list * @memberOf! () * * @param {object} params Parameters for request - * @param {string=} params.orderBy Optional comma separated list of triggeredJob fields to order by, followed by 'asc/desc' postfix, i.e. `"create_time asc,name desc,schedule_mode asc"`. This list is case-insensitive. Example: `"name asc,schedule_mode desc, status desc"` Supported filters keys and values are: - `create_time`: corresponds to time the triggeredJob was created. - `update_time`: corresponds to time the triggeredJob was last updated. - `name`: corresponds to JobTrigger's display name. - `status`: corresponds to the triggeredJob status. + * @param {string=} params.orderBy Optional comma separated list of triggeredJob fields to order by, followed by `asc` or `desc` postfix. This list is case-insensitive, default sorting order is ascending, redundant space characters are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `create_time`: corresponds to time the triggeredJob was created. - `update_time`: corresponds to time the triggeredJob was last updated. - `name`: corresponds to JobTrigger's name. * @param {integer=} params.pageSize Optional size of the page, can be limited by a server. - * @param {string=} params.pageToken Optional page token to continue retrieval. Comes from previous call to ListJobTriggers. `order_by` and `filter` should not change for subsequent calls, but can be omitted if token is specified. - * @param {string} params.parent The parent resource name, for example projects/my-project-id. + * @param {string=} params.pageToken Optional page token to continue retrieval. Comes from previous call to ListJobTriggers. `order_by` field must not change for subsequent calls. + * @param {string} params.parent The parent resource name, for example `projects/my-project-id`. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object @@ -6046,7 +6103,8 @@ export namespace dlp_v2 { /** * dlp.projects.jobTriggers.patch - * @desc Updates a job trigger. + * @desc Updates a job trigger. See + * https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. * @alias dlp.projects.jobTriggers.patch * @memberOf! () * @@ -6166,13 +6224,13 @@ export namespace dlp_v2 { /** * Optional comma separated list of triggeredJob fields to order by, - * followed by 'asc/desc' postfix, i.e. `"create_time asc,name - * desc,schedule_mode asc"`. This list is case-insensitive. Example: `"name - * asc,schedule_mode desc, status desc"` Supported filters keys and values - * are: - `create_time`: corresponds to time the triggeredJob was created. - * - `update_time`: corresponds to time the triggeredJob was last updated. - - * `name`: corresponds to JobTrigger's display name. - `status`: corresponds - * to the triggeredJob status. + * followed by `asc` or `desc` postfix. This list is case-insensitive, + * default sorting order is ascending, redundant space characters are + * insignificant. Example: `name asc,update_time, create_time desc` + * Supported fields are: - `create_time`: corresponds to time the + * triggeredJob was created. - `update_time`: corresponds to time the + * triggeredJob was last updated. - `name`: corresponds to JobTrigger's + * name. */ orderBy?: string; /** @@ -6181,12 +6239,11 @@ export namespace dlp_v2 { pageSize?: number; /** * Optional page token to continue retrieval. Comes from previous call to - * ListJobTriggers. `order_by` and `filter` should not change for subsequent - * calls, but can be omitted if token is specified. + * ListJobTriggers. `order_by` field must not change for subsequent calls. */ pageToken?: string; /** - * The parent resource name, for example projects/my-project-id. + * The parent resource name, for example `projects/my-project-id`. */ parent?: string; } diff --git a/src/apis/firebaserules/v1.ts b/src/apis/firebaserules/v1.ts index 0dc9906b6bf..3f08a579fe3 100644 --- a/src/apis/firebaserules/v1.ts +++ b/src/apis/firebaserules/v1.ts @@ -384,6 +384,11 @@ export namespace firebaserules_v1 { * State of the test. */ state?: string; + /** + * The set of visited expressions for a given test. This returns positions + * and evaluation results of all visited expressions. + */ + visitedExpressions?: Schema$VisitedExpression[]; } /** * The request for FirebaseRulesService.TestRuleset. @@ -440,6 +445,19 @@ export namespace firebaserules_v1 { */ updateMask?: string; } + /** + * Store the position and access outcome for an expression visited in rules. + */ + export interface Schema$VisitedExpression { + /** + * Position in the `Source` or `Ruleset` where an expression was visited. + */ + sourcePosition?: Schema$SourcePosition; + /** + * The evaluated value for the visited expression, e.g. true/false + */ + value?: any; + } export class Resource$Projects { diff --git a/src/apis/genomics/v2alpha1.ts b/src/apis/genomics/v2alpha1.ts index 7aa263393b4..9b6e2ff1081 100644 --- a/src/apis/genomics/v2alpha1.ts +++ b/src/apis/genomics/v2alpha1.ts @@ -459,10 +459,22 @@ export namespace genomics_v2alpha1 { */ export interface Schema$Network { /** - * The network name to attach the VM's network interface to. If - * unspecified, the global default network is used. + * The network name to attach the VM's network interface to. The value + * will be prefixed with "global/networks/" unless it contains a + * "/" in which case it is assumed to be a fully specified network + * resource URL. If unspecified, the global default network is used. */ name?: string; + /** + * If the specified network is configured for custom subnet creation, the + * name of the subnetwork to attach the instance to must be specified here. + * The value is prefixed with "regions/x/subnetworks/" unless it + * contains a "/" in which case it is assumed to be a full + * specified subnetwork resource URL. If the '*' character appears + * in the value, it is replaced with the region that the virtual machine has + * been allocated in. + */ + subnetwork?: string; /** * If set to true, do not attach a public IP address to the VM. Note that * without an public IP address, additional configuration is required to diff --git a/src/apis/iamcredentials/index.ts b/src/apis/iamcredentials/index.ts new file mode 100644 index 00000000000..3afccb5642a --- /dev/null +++ b/src/apis/iamcredentials/index.ts @@ -0,0 +1,30 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI, GoogleConfigurable} from '../../shared/src'; +import {iamcredentials_v1} from './v1'; + +export const VERSIONS = { + 'v1': iamcredentials_v1.Iamcredentials, +}; + +export function iamcredentials(version: 'v1'): iamcredentials_v1.Iamcredentials; +export function iamcredentials(options: iamcredentials_v1.Options): + iamcredentials_v1.Iamcredentials; +export function iamcredentials( + this: GoogleConfigurable, + versionOrOptions: 'v1'|iamcredentials_v1.Options) { + return getAPI('iamcredentials', versionOrOptions, VERSIONS, this); +} diff --git a/src/apis/iamcredentials/v1.ts b/src/apis/iamcredentials/v1.ts new file mode 100644 index 00000000000..d3fea745858 --- /dev/null +++ b/src/apis/iamcredentials/v1.ts @@ -0,0 +1,64 @@ +/** + * Copyright 2015 Google Inc. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; + +import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; + +// tslint:disable: no-any +// tslint:disable: class-name +// tslint:disable: variable-name +// tslint:disable: jsdoc-format +// tslint:disable: no-namespace + +export namespace iamcredentials_v1 { + export interface Options extends GlobalOptions { + version: 'v1'; + } + + /** + * IAM Service Account Credentials API + * + * IAM Service Account Credentials API + * + * @example + * const {google} = require('googleapis'); + * const iamcredentials = google.iamcredentials('v1'); + * + * @namespace iamcredentials + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Iamcredentials + */ + export class Iamcredentials { + _options: GlobalOptions; + google?: GoogleConfigurable; + root = this; + + + constructor(options: GlobalOptions, google?: GoogleConfigurable) { + this._options = options || {}; + this.google = google; + this.getRoot.bind(this); + } + + getRoot() { + return this.root; + } + } +} diff --git a/src/apis/index.ts b/src/apis/index.ts index d22fce0400b..7aae3438727 100644 --- a/src/apis/index.ts +++ b/src/apis/index.ts @@ -83,6 +83,7 @@ import * as gmail from './gmail'; import * as groupsmigration from './groupsmigration'; import * as groupssettings from './groupssettings'; import * as iam from './iam'; +import * as iamcredentials from './iamcredentials'; import * as identitytoolkit from './identitytoolkit'; import * as jobs from './jobs'; import * as kgsearch from './kgsearch'; @@ -222,6 +223,7 @@ export const APIS: APIList = { groupsmigration: groupsmigration.VERSIONS, groupssettings: groupssettings.VERSIONS, iam: iam.VERSIONS, + iamcredentials: iamcredentials.VERSIONS, identitytoolkit: identitytoolkit.VERSIONS, jobs: jobs.VERSIONS, kgsearch: kgsearch.VERSIONS, @@ -358,6 +360,7 @@ export class GeneratedAPIs { groupsmigration = groupsmigration.groupsmigration; groupssettings = groupssettings.groupssettings; iam = iam.iam; + iamcredentials = iamcredentials.iamcredentials; identitytoolkit = identitytoolkit.identitytoolkit; jobs = jobs.jobs; kgsearch = kgsearch.kgsearch; @@ -492,6 +495,7 @@ export class GeneratedAPIs { this.groupsmigration = this.groupsmigration.bind(this); this.groupssettings = this.groupssettings.bind(this); this.iam = this.iam.bind(this); + this.iamcredentials = this.iamcredentials.bind(this); this.identitytoolkit = this.identitytoolkit.bind(this); this.jobs = this.jobs.bind(this); this.kgsearch = this.kgsearch.bind(this); diff --git a/src/apis/jobs/v2.ts b/src/apis/jobs/v2.ts index b60f5dec1bd..a56e3b8eff1 100644 --- a/src/apis/jobs/v2.ts +++ b/src/apis/jobs/v2.ts @@ -203,7 +203,8 @@ export namespace jobs_v2 { * the company. If an employer has a subsidiary or sub-brand, such as * "Alphabet" and "Google", which the client wishes to * use as the company displayed on the job. Best practice is to create a - * distinct company identifier for each distinct brand displayed. + * distinct company identifier for each distinct brand displayed. The + * maximum number of allowed characters is 255. */ distributorCompanyId?: string; /** @@ -235,14 +236,18 @@ export namespace jobs_v2 { * Optional. A list of keys of filterable Job.custom_attributes, whose * corresponding `string_values` are used in keyword search. Jobs with * `string_values` under these specified field keys are returned if any of - * the values matches the search keyword. + * the values matches the search keyword. Custom field values with + * parenthesis, brackets and special symbols might not be properly + * searchable, and those keyword queries need to be surrounded by quotes. */ keywordSearchableCustomAttributes?: string[]; /** * Deprecated. Use keyword_searchable_custom_attributes instead. Optional. * A list of filterable custom fields that should be used in keyword search. * The jobs of this company are returned if any of these custom fields - * matches the search keyword. + * matches the search keyword. Custom field values with parenthesis, + * brackets and special symbols might not be properly searchable, and those + * keyword queries need to be surrounded by quotes. */ keywordSearchableCustomFields?: number[]; /** @@ -358,7 +363,7 @@ export namespace jobs_v2 { */ type?: string; /** - * Required. Specify desired ** base compensation entry's ** + * Required. Specify desired `base compensation entry's` * CompensationInfo.CompensationUnit. */ units?: string[]; @@ -635,7 +640,7 @@ export namespace jobs_v2 { filter?: Schema$Filter; } /** - * Input only. Device information collected from the job searcher, candidate, + * Input only. Device information collected from the job seeker, candidate, * or other entity conducting the job search. Providing this information * improves the quality of the search results across devices. */ @@ -645,7 +650,7 @@ export namespace jobs_v2 { */ deviceType?: string; /** - * Optional. A device-specific ID. It must be a unique identifier, which + * Optional. A device-specific ID. The ID must be a unique identifier that * distinguishes the device from other devices. */ id?: string; @@ -668,7 +673,7 @@ export namespace jobs_v2 { */ compensationRange?: Schema$ExtendedCompensationInfoCompensationRange; /** - * Required. Specify desired ** base compensation entry's ** + * Required. Specify desired `base compensation entry's` * ExtendedCompensationInfo.CompensationUnit. */ compensationUnits?: string[]; @@ -874,16 +879,16 @@ export namespace jobs_v2 { export interface Schema$HistogramFacets { /** * Optional. Specifies compensation field-based histogram requests. - * Duplicate CompensationHistogramRequest.types are not allowed. + * Duplicate values of CompensationHistogramRequest.type are not allowed. */ compensationHistogramFacets?: Schema$CompensationHistogramRequest[]; /** * Optional. Specifies the custom attributes histogram requests. Duplicate - * CustomAttributeHistogramRequest.keys are not allowed. + * values of CustomAttributeHistogramRequest.key are not allowed. */ customAttributeHistogramFacets?: Schema$CustomAttributeHistogramRequest[]; /** - * Optional. Specifies the simple type of histogram facets, e.g, + * Optional. Specifies the simple type of histogram facets, for example, * `COMPANY_SIZE`, `EMPLOYMENT_TYPE` etc. This field is equivalent to * GetHistogramRequest. */ @@ -1017,7 +1022,7 @@ export namespace jobs_v2 { description?: string; /** * Optional but one of company_name or distributor_company_id must be - * provided. A unique company identifier that used by job distributors to + * provided. A unique company identifier used by job distributors to * identify an employer's company entity. company_name takes precedence * over this field, and is the recommended field to use to identify * companies. The maximum number of allowed characters is 255. @@ -1040,35 +1045,34 @@ export namespace jobs_v2 { */ endDate?: Schema$Date; /** - * Optional but strongly recommended to be provided for the best service - * experience. The expiration timestamp of the job. After this timestamp, - * the job is marked as expired, and it no longer appears in search results. - * The expired job can't be deleted or listed by the DeleteJob and - * ListJobs APIs, but it can be retrieved with the GetJob API or updated - * with the UpdateJob API. An expired job can be updated and opened again by - * using a future expiration timestamp. It can also remain expired. Updating - * an expired job to be open fails if there is another existing open job - * with same requisition_id, company_name and language_code. The expired - * jobs are retained in our system for 90 days. However, the overall expired - * job count cannot exceed 3 times the maximum of open jobs count over the - * past week, otherwise jobs with earlier expire time are cleaned first. - * Expired jobs are no longer accessible after they are cleaned out. The - * format of this field is RFC 3339 date strings. Example: - * 2000-01-01T00:00:00.999999999Z See + * Optional but strongly recommended for the best service experience. The + * expiration timestamp of the job. After this timestamp, the job is marked + * as expired, and it no longer appears in search results. The expired job + * can't be deleted or listed by the DeleteJob and ListJobs APIs, but it + * can be retrieved with the GetJob API or updated with the UpdateJob API. + * An expired job can be updated and opened again by using a future + * expiration timestamp. Updating an expired job fails if there is another + * existing open job with same requisition_id, company_name and + * language_code. The expired jobs are retained in our system for 90 days. + * However, the overall expired job count cannot exceed 3 times the maximum + * of open jobs count over the past week, otherwise jobs with earlier expire + * time are cleaned first. Expired jobs are no longer accessible after they + * are cleaned out. The format of this field is RFC 3339 date strings. + * Example: 2000-01-01T00:00:00.999999999Z See * [https://www.ietf.org/rfc/rfc3339.txt](https://www.ietf.org/rfc/rfc3339.txt). * A valid date range is between 1970-01-01T00:00:00.0Z and * 2100-12-31T23:59:59.999Z. Invalid dates are ignored and treated as expire - * time not provided. If this value is not provided on job creation or - * invalid, the job posting expires after 30 days from the job's - * creation time. For example, if the job was created on 2017/01/01 13:00AM - * UTC with an unspecified expiration date, the job expires after 2017/01/31 - * 13:00AM UTC. If this value is not provided but expiry_date is, - * expiry_date is used. If this value is not provided on job update, it - * depends on the field masks set by UpdateJobRequest.update_job_fields. If - * the field masks include expiry_time, or the masks are empty meaning that - * every field is updated, the job posting expires after 30 days from the - * job's last update time. Otherwise the expiration date isn't - * updated. + * time not provided. If this value is not provided at the time of job + * creation or is invalid, the job posting expires after 30 days from the + * job's creation time. For example, if the job was created on + * 2017/01/01 13:00AM UTC with an unspecified expiration date, the job + * expires after 2017/01/31 13:00AM UTC. If this value is not provided but + * expiry_date is, expiry_date is used. If this value is not provided on + * job update, it depends on the field masks set by + * UpdateJobRequest.update_job_fields. If the field masks include + * expiry_time, or the masks are empty meaning that every field is updated, + * the job posting expires after 30 days from the job's last update + * time. Otherwise the expiration date isn't updated. */ expireTime?: string; /** @@ -1138,8 +1142,9 @@ export namespace jobs_v2 { * requirements for fluency that are associated with the job. Language * codes must be in BCP-47 format, such as "en-US" or * "sr-Latn". For more information, see [Tags for Identifying - * Languages](https://tools.ietf.org/html/bcp47). The default value is - * `en-US`. + * Languages](https://tools.ietf.org/html/bcp47){: + * class="external" target="_blank" }. The default + * value is `en-US`. */ languageCode?: string; /** @@ -1148,10 +1153,10 @@ export namespace jobs_v2 { */ level?: string; /** - * Optional but strongly recommended to be provided for the best service - * experience. Location(s) where the job is hiring. Providing the full - * street address(es) of the hiring location is recommended to enable better - * API results, including job searches by commute time. At most 50 + * Optional but strongly recommended for the best service experience. + * Location(s) where the emploeyer is looking to hire for this job posting. + * Specifying the full street address(es) of the hiring location enables + * better API results, especially job searches by commute time. At most 50 * locations are allowed for best search performance. If a job has more * locations, it is suggested to split it into multiple jobs with unique * requisition_ids (e.g. 'ReqA' becomes 'ReqA-1', @@ -1210,7 +1215,7 @@ export namespace jobs_v2 { * used by clients for client identification and tracking of listings. A job * is not allowed to be created if there is another job with the same * requisition_id, company_name and language_code. The maximum number of - * allowed characters is 225. + * allowed characters is 255. */ requisitionId?: string; /** @@ -1341,9 +1346,9 @@ export namespace jobs_v2 { /** * Optional. This filter specifies the locale of jobs to search against, * for example, "en-US". If a value is not specified, the search - * results can contain jobs in any locale. Language codes should be in - * BCP-47 format, such as "en-US" or "sr-Latn". For more - * information, see [Tags for Identifying + * results may contain jobs in any locale. Language codes should be in + * BCP-47 format, for example, "en-US" or "sr-Latn". For + * more information, see [Tags for Identifying * Languages](https://tools.ietf.org/html/bcp47). At most 10 language code * filters are allowed. */ @@ -1362,20 +1367,20 @@ export namespace jobs_v2 { /** * Optional. Jobs published within a range specified by this filter are * searched against, for example, DateRange.PAST_MONTH. If a value is not - * specified, all open jobs are searched against regardless of the date on - * which they were published. + * specified, all open jobs are searched against regardless of the date they + * were published. */ publishDateRange?: string; /** * Optional. The query filter contains the keywords that match against the * job title, description, and location fields. The maximum query size is - * 255 bytes. + * 255 bytes/characters. */ query?: string; /** - * Optional. This flag controls whether the job search should be restricted - * to jobs owned by the current user. Defaults to false that all jobs - * accessible to the user are searched against. + * Deprecated. Do not use this field. This flag controls whether the job + * search should be restricted to jobs owned by the current user. Defaults + * to false where all jobs accessible to the user are searched against. */ tenantJobOnly?: boolean; } @@ -1425,50 +1430,48 @@ export namespace jobs_v2 { categories?: string[]; /** * Optional. Allows filtering jobs by commute time with different travel - * methods (e.g. driving or public transit). Note: this only works with - * COMMUTE MODE. When specified, [JobQuery.location_filters] will be - * ignored. Currently we do not support sorting by commute time. + * methods (for example, driving or public transit). Note: This only works + * with COMMUTE MODE. When specified, [JobQuery.location_filters] is + * ignored. Currently we don't support sorting by commute time. */ commuteFilter?: Schema$CommutePreference; /** - * Optional. This filter specifies the exact company display name of jobs - * to search against. If a value is not specified, jobs within the search - * results can be associated with any company. If multiple values are + * Optional. This filter specifies the exact company display name of the + * jobs to search against. If a value isn't specified, jobs within the + * search results are associated with any company. If multiple values are * specified, jobs within the search results may be associated with any of * the specified companies. At most 20 company display name filters are * allowed. */ companyDisplayNames?: string[]; /** - * Optional. The company names filter specifies the company entities to - * search against. If a value is not specified, jobs are searched for - * against all companies. If multiple values are specified, jobs are - * searched against the specified companies. At most 20 company filters are - * allowed. + * Optional. This filter specifies the company entities to search against. + * If a value isn't specified, jobs are searched for against all + * companies. If multiple values are specified, jobs are searched against + * the companies specified. At most 20 company filters are allowed. */ companyNames?: string[]; /** * Optional. This search filter is applied only to Job.compensation_info. * For example, if the filter is specified as "Hourly job with per-hour - * compensation > $15", only jobs that meet these criteria are - * searched. If a filter is not defined, all open jobs are searched. + * compensation > $15", only jobs meeting these criteria are + * searched. If a filter isn't defined, all open jobs are searched. */ compensationFilter?: Schema$CompensationFilter; /** * Optional. This filter specifies a structured syntax to match against the - * Job.custom_attributes that are marked as `filterable`. The syntax for - * this expression is a subset of Google SQL syntax. Supported operators - * are: =, !=, <, <=, >, >= where the left of the operator is a - * custom field key and the right of the operator is a number or string - * (surrounded by quotes) value. Supported functions are - * LOWER(<field_name>) to perform case insensitive match and - * EMPTY(<field_name>) to filter on the existence of a key. Boolean - * expressions (AND/OR/NOT) are supported up to 3 levels of nesting (for - * example, "((A AND B AND C) OR NOT D) AND E"), and there can be - * a maximum of 50 comparisons/functions in the expression. The expression - * must be < 2000 characters in length. Sample Query: (key1 = - * "TEST" OR LOWER(key1)="test" OR NOT EMPTY(key1)) AND - * key2 > 100 + * Job.custom_attributes marked as `filterable`. The syntax for this + * expression is a subset of Google SQL syntax. Supported operators are: =, + * !=, <, <=, >, >= where the left of the operator is a custom + * field key and the right of the operator is a number or string (surrounded + * by quotes) value. Supported functions are LOWER(<field_name>) to + * perform case insensitive match and EMPTY(<field_name>) to filter on + * the existence of a key. Boolean expressions (AND/OR/NOT) are supported + * up to 3 levels of nesting (for example, "((A AND B AND C) OR NOT D) + * AND E"), a maximum of 50 comparisons/functions are allowed in the + * expression. The expression must be < 2000 characters in length. Sample + * Query: (key1 = "TEST" OR LOWER(key1)="test" OR NOT + * EMPTY(key1)) AND key2 > 100 */ customAttributeFilter?: string; /** @@ -1481,17 +1484,17 @@ export namespace jobs_v2 { /** * Optional. The employment type filter specifies the employment type of * jobs to search against, such as EmploymentType.FULL_TIME. If a value is - * not specified, jobs in the search results will include any employment - * type. If multiple values are specified, jobs in the search results - * include any of the specified employment types. + * not specified, jobs in the search results includes any employment type. + * If multiple values are specified, jobs in the search results include any + * of the specified employment types. */ employmentTypes?: string[]; /** * Optional. This filter specifies the locale of jobs to search against, - * for example, "en-US". If a value is not specified, the search - * results can contain jobs in any locale. Language codes should be in - * BCP-47 format, such as "en-US" or "sr-Latn". For more - * information, see [Tags for Identifying + * for example, "en-US". If a value isn't specified, the + * search results can contain jobs in any locale. Language codes should be + * in BCP-47 format, such as "en-US" or "sr-Latn". For + * more information, see [Tags for Identifying * Languages](https://tools.ietf.org/html/bcp47). At most 10 language code * filters are allowed. */ @@ -1499,19 +1502,19 @@ export namespace jobs_v2 { /** * Optional. The location filter specifies geo-regions containing the jobs * to search against. See LocationFilter for more information. If a - * location value is not specified, jobs that fit the other search criteria - * are retrieved regardless of where they're located. If multiple - * values are specified, jobs are retrieved from any of the specified - * locations, and, if different values are specified for the + * location value isn'tt specified, jobs fitting the other search + * criteria are retrieved regardless of where they're located. If + * multiple values are specified, jobs are retrieved from any of the + * specified locations, and, if different values are specified for the * LocationFilter.distance_in_miles parameter, the maximum provided distance * is used for all locations. At most 5 location filters are allowed. */ locationFilters?: Schema$LocationFilter[]; /** * Optional. Jobs published within a range specified by this filter are - * searched against, for example, DateRange.PAST_MONTH. If a value is not - * specified, all open jobs are searched against regardless of the date on - * which they were published. + * searched against, for example, DateRange.PAST_MONTH. If a value isn't + * specified, all open jobs are searched against regardless of their + * published date. */ publishDateRange?: string; /** @@ -1519,12 +1522,6 @@ export namespace jobs_v2 { * description, and location fields. The maximum query size is 255 bytes. */ query?: string; - /** - * Optional. This flag controls whether the job search should be restricted - * to jobs owned by the current user. Defaults to false: all jobs - * accessible to the user are searched against. - */ - tenantJobOnly?: boolean; } /** * An object representing a latitude/longitude pair. This is expressed as a @@ -1670,8 +1667,8 @@ export namespace jobs_v2 { */ jobSummary?: string; /** - * Contains snippets of text from the Job.job_title field that most closely - * match a search query's keywords, if available. The matching query + * Contains snippets of text from the Job.job_title field most closely + * matching a search query's keywords, if available. The matching query * keywords are enclosed in HTML bold tags. */ jobTitleSnippet?: string; @@ -1872,7 +1869,9 @@ export namespace jobs_v2 { * <em>Foo, Inc.</em>, on job board www.foo.com and career site * www.bar.com, then this field is set to "foo.com" for use on the * job board, and "bar.com" for use on the career site. If this - * field is not available for some reason, please send "UNKNOWN". + * field is not available for some reason, send "UNKNOWN". Note + * that any improvements to the {{ api_name }} model for a particular tenant + * site, rely on this field being set correctly to some domain. */ domain?: string; /** @@ -1880,7 +1879,9 @@ export namespace jobs_v2 { * as the duration of an end user's interaction with the service over a * period. Obfuscate this field for privacy concerns before providing it to * the API. If this field is not available for some reason, please send - * "UNKNOWN". + * "UNKNOWN". Note that any improvements to the {{ api_name }} + * model for a particular tenant site, rely on this field being set + * correctly to some unique session_id. */ sessionId?: string; /** @@ -1889,7 +1890,9 @@ export namespace jobs_v2 { * this value in order to have the strongest positive impact on search * quality. Obfuscate this field for privacy concerns before providing it to * the service. If this field is not available for some reason, please send - * "UNKNOWN". + * "UNKNOWN". Note that any improvements to the {{ api_name }} + * model for a particular tenant site, rely on this field being set + * correctly to some unique user_id. */ userId?: string; } @@ -1919,7 +1922,7 @@ export namespace jobs_v2 { */ export interface Schema$SearchJobsRequest { /** - * Deprecated. Any value provided in this field will be ignored. Optional. + * Deprecated. Any value provided in this field is ignored. Optional. * Controls whether to disable relevance thresholding. Relevance * thresholding removes jobs that have low relevance in search results, for * example, removing "Assistant to the CEO" positions from the @@ -1954,8 +1957,8 @@ export namespace jobs_v2 { */ histogramFacets?: Schema$HistogramFacets; /** - * Optional. The number of job attributes that is returned for jobs in the - * search response. Defaults to JobView.SMALL if no value is specified. + * Optional. The number of job attributes returned for jobs in the search + * response. Defaults to JobView.SMALL if no value is specified. */ jobView?: string; /** @@ -1963,18 +1966,19 @@ export namespace jobs_v2 { */ mode?: string; /** - * Optional. An integer that specifies the current offset (i.e. starting - * result) in search results. This field is only considered if page_token is - * unset. For example, 0 means to return results starting from the first - * matching job, and 10 means to return from the 11th job. This can be used - * for pagination, (for example, pageSize = 10 and offset = 10 means to - * return from the second page). + * Optional. An integer that specifies the current offset (that is, + * starting result location, amongst the jobs deemed by the API as relevant) + * in search results. This field is only considered if page_token is unset. + * For example, 0 means to return results starting from the first matching + * job, and 10 means to return from the 11th job. This can be used for + * pagination, (for example, pageSize = 10 and offset = 10 means to return + * from the second page). */ offset?: number; /** - * Deprecated. Use sort_by instead. Optional. The criteria that determine - * how search results are sorted. Defaults to SortBy.RELEVANCE_DESC if no - * value is specified. + * Deprecated. Use sort_by instead. Optional. The criteria determining how + * search results are sorted. Defaults to SortBy.RELEVANCE_DESC if no value + * is specified. */ orderBy?: string; /** @@ -1984,9 +1988,9 @@ export namespace jobs_v2 { */ pageSize?: number; /** - * Optional. The token that specifies the current offset within search - * results. See SearchJobsResponse.next_page_token for an explanation of how - * to obtain the next set of query results. + * Optional. The token specifying the current offset within search results. + * See SearchJobsResponse.next_page_token for an explanation of how to + * obtain the next set of query results. */ pageToken?: string; /** @@ -2001,7 +2005,7 @@ export namespace jobs_v2 { */ requestMetadata?: Schema$RequestMetadata; /** - * Optional. The criteria that determine how search results are sorted. + * Optional. The criteria determining how search results are sorted. * Defaults to SortBy.RELEVANCE_DESC if no value is specified. */ sortBy?: string; @@ -2011,7 +2015,7 @@ export namespace jobs_v2 { */ export interface Schema$SearchJobsResponse { /** - * The commute filter that the service applied to the specified query. This + * The commute filter the service applied to the specified query. This * information is only available when query has a valid CommutePreference. */ appliedCommuteFilter?: Schema$CommutePreference; @@ -2568,7 +2572,7 @@ export namespace jobs_v2 { * @param {string} params.companyName Required. The resource name of the company that owns the jobs to be listed, such as, "companies/0000aaaa-1111-bbbb-2222-cccc3333dddd". * @param {boolean=} params.idsOnly Optional. If set to `true`, only job ID, job requisition ID and language code will be returned. A typical use is to synchronize job repositories. Defaults to false. * @param {boolean=} params.includeJobsCount Deprecated. Please DO NOT use this field except for small companies. Suggest counting jobs page by page instead. Optional. Set to true if the total number of open jobs is to be returned. Defaults to false. - * @param {string=} params.jobRequisitionId Optional. The requisition ID, also known as posting ID, assigned by the company to the job. The number of allowable characters is 225. + * @param {string=} params.jobRequisitionId Optional. The requisition ID, also known as posting ID, assigned by the company to the job. The maximum number of allowable characters is 225. * @param {integer=} params.pageSize Optional. The maximum number of jobs to be returned per page of results. If ids_only is set to true, the maximum allowed page size is 1000. Otherwise, the maximum allowed page size is 100. Default is 100 if empty or a number < 1 is specified. * @param {string=} params.pageToken Optional. The starting point of a query result. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. @@ -2655,7 +2659,7 @@ export namespace jobs_v2 { includeJobsCount?: boolean; /** * Optional. The requisition ID, also known as posting ID, assigned by the - * company to the job. The number of allowable characters is 225. + * company to the job. The maximum number of allowable characters is 225. */ jobRequisitionId?: string; /** @@ -2687,7 +2691,7 @@ export namespace jobs_v2 { /** * jobs.jobs.batchDelete - * @desc Deletes a list of Jobs by filter. + * @desc Deletes a list of Job postings by filter. * @alias jobs.jobs.batchDelete * @memberOf! () * @@ -3152,9 +3156,8 @@ export namespace jobs_v2 { /** * jobs.jobs.patch - * @desc Updates the specified job. Typically, the updated contents become - * visible in search results within 10 seconds, but it may take up to 5 - * minutes. + * @desc Updates specified job. Typically, updated contents become visible + * in search results within 10 seconds, but it may take up to 5 minutes. * @alias jobs.jobs.patch * @memberOf! () * @@ -3284,12 +3287,13 @@ export namespace jobs_v2 { /** * jobs.jobs.searchForAlert - * @desc Searches for jobs using the provided SearchJobsRequest. This call - * is intended to use for large, periodic tasks such as email alert - * processing, and has different algorithmic adjustments that are targeted - * to passive job seekers. This call constrains the visibility of jobs - * present in the database, and only returns jobs the caller has permission - * to search against. + * @desc Searches for jobs using the provided SearchJobsRequest. This API + * call is intended for the use case of targeting passive job seekers (for + * example, job seekers who have signed up to receive email alerts about + * potential job opportunities), and has different algorithmic adjustments + * that are targeted to passive job seekers. This call constrains the + * visibility of jobs present in the database, and only returns jobs the + * caller has permission to search against. * @alias jobs.jobs.searchForAlert * @memberOf! () * diff --git a/src/apis/ml/v1.ts b/src/apis/ml/v1.ts index 2a1a278c50a..29044f0a81f 100644 --- a/src/apis/ml/v1.ts +++ b/src/apis/ml/v1.ts @@ -818,6 +818,17 @@ export namespace ml_v1 { * Output only. The time the version was last used for prediction. */ lastUseTime?: string; + /** + * Optional. The type of machine on which to serve the model. Currently only + * applies to online prediction service. Naming design doc for CMLE online + * prediction Machine Types: + * https://docs.google.com/document/d/1V3tko3VJ64PcpsmNxCXiPoPGccL9_K8gX1YjC8UofzQ/edit#heading=h.7lvy6owfx4eh. + * The following are currently supported and will be deprecated in Beta + * release. mls1-highmem-1 1 core 2 Gb RAM mls1-highcpu-4 4 + * core 2 Gb RAM The following are available in Beta: mls1-c1-m2 1 core + * 2 Gb RAM Default mls1-c4-m2 1 core 4 Gb RAM + */ + machineType?: string; /** * Manually select the number of nodes to use for serving the model. You * should generally use `auto_scaling` with an appropriate `min_nodes` diff --git a/src/apis/monitoring/v3.ts b/src/apis/monitoring/v3.ts index f4cc61efe48..36ded0e37f3 100644 --- a/src/apis/monitoring/v3.ts +++ b/src/apis/monitoring/v3.ts @@ -477,9 +477,7 @@ export namespace monitoring_v3 { */ count?: string; /** - * Must be in increasing order of |value| field. The current requirement - * enforced by the backend is that at most one Exemplar will fall into any - * bucket. + * Must be in increasing order of value field. */ exemplars?: Schema$Exemplar[]; /** diff --git a/src/apis/poly/v1.ts b/src/apis/poly/v1.ts index cdfb8cd8eff..75dbeb427ee 100644 --- a/src/apis/poly/v1.ts +++ b/src/apis/poly/v1.ts @@ -336,6 +336,14 @@ export namespace poly_v1 { * asset was uploaded. */ export interface Schema$PresentationParams { + /** + * A background color which could be used for displaying the 3D asset in a + * 'thumbnail' or 'palette' style view. Authors have the + * option to set this background color when publishing or editing their + * asset. This is represented as a six-digit hexademical triplet specifying + * the RGB components of the background color, e.g. #FF0000 for Red. + */ + backgroundColor?: string; /** * The materials' diffuse/albedo color. This does not apply to vertex * colors or texture maps. diff --git a/src/apis/replicapool/index.ts b/src/apis/replicapool/index.ts index bbd2879e993..b1342054a97 100644 --- a/src/apis/replicapool/index.ts +++ b/src/apis/replicapool/index.ts @@ -15,25 +15,17 @@ import {getAPI, GoogleConfigurable} from '../../shared/src'; import {replicapool_v1beta1} from './v1beta1'; -import {replicapool_v1beta2} from './v1beta2'; export const VERSIONS = { 'v1beta1': replicapool_v1beta1.Replicapool, - 'v1beta2': replicapool_v1beta2.Replicapool, }; export function replicapool(version: 'v1beta1'): replicapool_v1beta1.Replicapool; export function replicapool(options: replicapool_v1beta1.Options): replicapool_v1beta1.Replicapool; -export function replicapool(version: 'v1beta2'): - replicapool_v1beta2.Replicapool; -export function replicapool(options: replicapool_v1beta2.Options): - replicapool_v1beta2.Replicapool; -export function replicapool< - T = replicapool_v1beta1.Replicapool | replicapool_v1beta2.Replicapool>( +export function replicapool( this: GoogleConfigurable, - versionOrOptions: 'v1beta1'| - replicapool_v1beta1.Options|'v1beta2'|replicapool_v1beta2.Options) { + versionOrOptions: 'v1beta1'|replicapool_v1beta1.Options) { return getAPI('replicapool', versionOrOptions, VERSIONS, this); } diff --git a/src/apis/replicapool/v1beta2.ts b/src/apis/replicapool/v1beta2.ts deleted file mode 100644 index e4a0b360ef4..00000000000 --- a/src/apis/replicapool/v1beta2.ts +++ /dev/null @@ -1,1553 +0,0 @@ -/** - * Copyright 2015 Google Inc. All Rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import {AxiosPromise} from 'axios'; -import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; - -import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; - -// tslint:disable: no-any -// tslint:disable: class-name -// tslint:disable: variable-name -// tslint:disable: jsdoc-format -// tslint:disable: no-namespace - -export namespace replicapool_v1beta2 { - export interface Options extends GlobalOptions { - version: 'v1beta2'; - } - - /** - * Google Compute Engine Instance Group Manager API - * - * [Deprecated. Please use Instance Group Manager in Compute API] Provides - * groups of homogenous Compute Engine instances. - * - * @example - * const {google} = require('googleapis'); - * const replicapool = google.replicapool('v1beta2'); - * - * @namespace replicapool - * @type {Function} - * @version v1beta2 - * @variation v1beta2 - * @param {object=} options Options for Replicapool - */ - export class Replicapool { - _options: GlobalOptions; - google?: GoogleConfigurable; - root = this; - - instanceGroupManagers: Resource$Instancegroupmanagers; - zoneOperations: Resource$Zoneoperations; - - constructor(options: GlobalOptions, google?: GoogleConfigurable) { - this._options = options || {}; - this.google = google; - this.getRoot.bind(this); - - this.instanceGroupManagers = new Resource$Instancegroupmanagers(this); - this.zoneOperations = new Resource$Zoneoperations(this); - } - - getRoot() { - return this.root; - } - } - - /** - * An Instance Group Manager resource. - */ - export interface Schema$InstanceGroupManager { - /** - * The autohealing policy for this managed instance group. You can specify - * only one value. - */ - autoHealingPolicies?: Schema$ReplicaPoolAutoHealingPolicy[]; - /** - * The base instance name to use for instances in this group. The value must - * be a valid RFC1035 name. Supported characters are lowercase letters, - * numbers, and hyphens (-). Instances are named by appending a hyphen and a - * random four-character string to the base instance name. - */ - baseInstanceName?: string; - /** - * [Output only] The time the instance group manager was created, in RFC3339 - * text format. - */ - creationTimestamp?: string; - /** - * [Output only] The number of instances that currently exist and are a part - * of this group. This includes instances that are starting but are not yet - * RUNNING, and instances that are in the process of being deleted or - * abandoned. - */ - currentSize?: number; - /** - * An optional textual description of the instance group manager. - */ - description?: string; - /** - * [Output only] Fingerprint of the instance group manager. This field is - * used for optimistic locking. An up-to-date fingerprint must be provided - * in order to modify the Instance Group Manager resource. - */ - fingerprint?: string; - /** - * [Output only] The full URL of the instance group created by the manager. - * This group contains all of the instances being managed, and cannot - * contain non-managed instances. - */ - group?: string; - /** - * [Output only] A server-assigned unique identifier for the resource. - */ - id?: string; - /** - * The full URL to an instance template from which all new instances will be - * created. - */ - instanceTemplate?: string; - /** - * [Output only] The resource type. Always replicapool#instanceGroupManager. - */ - kind?: string; - /** - * The name of the instance group manager. Must be 1-63 characters long and - * comply with RFC1035. Supported characters include lowercase letters, - * numbers, and hyphens. - */ - name?: string; - /** - * [Output only] The fully qualified URL for this resource. - */ - selfLink?: string; - /** - * The full URL of all target pools to which new instances in the group are - * added. Updating the target pool values does not affect existing - * instances. - */ - targetPools?: string[]; - /** - * [Output only] The number of instances that the manager is attempting to - * maintain. Deleting or abandoning instances affects this number, as does - * resizing the group. - */ - targetSize?: number; - } - export interface Schema$InstanceGroupManagerList { - /** - * Unique identifier for the resource; defined by the server (output only). - */ - id?: string; - /** - * A list of instance resources. - */ - items?: Schema$InstanceGroupManager[]; - /** - * Type of resource. - */ - kind?: string; - /** - * A token used to continue a truncated list request (output only). - */ - nextPageToken?: string; - /** - * Server defined URL for this resource (output only). - */ - selfLink?: string; - } - export interface Schema$InstanceGroupManagersAbandonInstancesRequest { - /** - * The names of one or more instances to abandon. For example: { - * 'instances': [ 'instance-c3po', 'instance-r2d2' ] - * } - */ - instances?: string[]; - } - export interface Schema$InstanceGroupManagersDeleteInstancesRequest { - /** - * Names of instances to delete. Example: 'instance-foo', - * 'instance-bar' - */ - instances?: string[]; - } - export interface Schema$InstanceGroupManagersRecreateInstancesRequest { - /** - * The names of one or more instances to recreate. For example: { - * 'instances': [ 'instance-c3po', 'instance-r2d2' ] - * } - */ - instances?: string[]; - } - export interface Schema$InstanceGroupManagersSetInstanceTemplateRequest { - /** - * The full URL to an Instance Template from which all new instances will be - * created. - */ - instanceTemplate?: string; - } - export interface Schema$InstanceGroupManagersSetTargetPoolsRequest { - /** - * The current fingerprint of the Instance Group Manager resource. If this - * does not match the server-side fingerprint of the resource, then the - * request will be rejected. - */ - fingerprint?: string; - /** - * A list of fully-qualified URLs to existing Target Pool resources. New - * instances in the Instance Group Manager will be added to the specified - * target pools; existing instances are not affected. - */ - targetPools?: string[]; - } - /** - * An operation resource, used to manage asynchronous API requests. - */ - export interface Schema$Operation { - /** - * [Output only] An optional identifier specified by the client when the - * mutation was initiated. Must be unique for all operation resources in the - * project. - */ - clientOperationId?: string; - /** - * [Output Only] The time that this operation was requested, in RFC3339 text - * format. - */ - creationTimestamp?: string; - /** - * [Output Only] The time that this operation was completed, in RFC3339 text - * format. - */ - endTime?: string; - /** - * [Output Only] If errors occurred during processing of this operation, - * this field will be populated. - */ - error?: any; - /** - * [Output only] If operation fails, the HTTP error message returned. - */ - httpErrorMessage?: string; - /** - * [Output only] If operation fails, the HTTP error status code returned. - */ - httpErrorStatusCode?: number; - /** - * [Output Only] Unique identifier for the resource, generated by the - * server. - */ - id?: string; - /** - * [Output Only] The time that this operation was requested, in RFC3339 text - * format. - */ - insertTime?: string; - /** - * [Output only] Type of the resource. - */ - kind?: string; - /** - * [Output Only] Name of the resource. - */ - name?: string; - /** - * [Output only] Type of the operation. Operations include insert, update, - * and delete. - */ - operationType?: string; - /** - * [Output only] An optional progress indicator that ranges from 0 to 100. - * There is no requirement that this be linear or support any granularity of - * operations. This should not be used to guess at when the operation will - * be complete. This number should be monotonically increasing as the - * operation progresses. - */ - progress?: number; - /** - * [Output Only] URL of the region where the operation resides. Only - * available when performing regional operations. - */ - region?: string; - /** - * [Output Only] Server-defined fully-qualified URL for this resource. - */ - selfLink?: string; - /** - * [Output Only] The time that this operation was started by the server, in - * RFC3339 text format. - */ - startTime?: string; - /** - * [Output Only] Status of the operation. - */ - status?: string; - /** - * [Output Only] An optional textual description of the current status of - * the operation. - */ - statusMessage?: string; - /** - * [Output Only] Unique target ID which identifies a particular incarnation - * of the target. - */ - targetId?: string; - /** - * [Output only] URL of the resource the operation is mutating. - */ - targetLink?: string; - /** - * [Output Only] User who requested the operation, for example: - * user@example.com. - */ - user?: string; - /** - * [Output Only] If there are issues with this operation, a warning is - * returned. - */ - warnings?: any[]; - /** - * [Output Only] URL of the zone where the operation resides. Only available - * when performing per-zone operations. - */ - zone?: string; - } - export interface Schema$OperationList { - /** - * Unique identifier for the resource; defined by the server (output only). - */ - id?: string; - /** - * The operation resources. - */ - items?: Schema$Operation[]; - /** - * Type of resource. - */ - kind?: string; - /** - * A token used to continue a truncated list request (output only). - */ - nextPageToken?: string; - /** - * Server defined URL for this resource (output only). - */ - selfLink?: string; - } - export interface Schema$ReplicaPoolAutoHealingPolicy { - /** - * The action to perform when an instance becomes unhealthy. Possible values - * are RECREATE or REBOOT. RECREATE replaces an unhealthy instance with a - * new instance that is based on the instance template for this managed - * instance group. REBOOT performs a soft reboot on an instance. If the - * instance cannot reboot, the instance performs a hard restart. - */ - actionType?: string; - /** - * The URL for the HealthCheck that signals autohealing. - */ - healthCheck?: string; - } - - - export class Resource$Instancegroupmanagers { - root: Replicapool; - constructor(root: Replicapool) { - this.root = root; - this.getRoot.bind(this); - } - - getRoot() { - return this.root; - } - - - /** - * replicapool.instanceGroupManagers.abandonInstances - * @desc Removes the specified instances from the managed instance group, - * and from any target pools of which they were members, without deleting - * the instances. - * @alias replicapool.instanceGroupManagers.abandonInstances - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.instanceGroupManager The name of the instance group manager. - * @param {string} params.project The Google Developers Console project name. - * @param {string} params.zone The name of the zone in which the instance group manager resides. - * @param {().InstanceGroupManagersAbandonInstancesRequest} params.resource Request body data - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - abandonInstances( - params?: Params$Resource$Instancegroupmanagers$Abandoninstances, - options?: MethodOptions): AxiosPromise; - abandonInstances( - params: Params$Resource$Instancegroupmanagers$Abandoninstances, - options: MethodOptions|BodyResponseCallback, - callback: BodyResponseCallback): void; - abandonInstances( - params: Params$Resource$Instancegroupmanagers$Abandoninstances, - callback: BodyResponseCallback): void; - abandonInstances(callback: BodyResponseCallback): void; - abandonInstances( - paramsOrCallback?: - Params$Resource$Instancegroupmanagers$Abandoninstances| - BodyResponseCallback, - optionsOrCallback?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - let params = (paramsOrCallback || {}) as - Params$Resource$Instancegroupmanagers$Abandoninstances; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Instancegroupmanagers$Abandoninstances; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: - (rootUrl + - '/replicapool/v1beta2/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/abandonInstances') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - - /** - * replicapool.instanceGroupManagers.delete - * @desc Deletes the instance group manager and all instances contained - * within. If you'd like to delete the manager without deleting the - * instances, you must first abandon the instances to remove them from the - * group. - * @alias replicapool.instanceGroupManagers.delete - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.instanceGroupManager Name of the Instance Group Manager resource to delete. - * @param {string} params.project The Google Developers Console project name. - * @param {string} params.zone The name of the zone in which the instance group manager resides. - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - delete( - params?: Params$Resource$Instancegroupmanagers$Delete, - options?: MethodOptions): AxiosPromise; - delete( - params: Params$Resource$Instancegroupmanagers$Delete, - options: MethodOptions|BodyResponseCallback, - callback: BodyResponseCallback): void; - delete( - params: Params$Resource$Instancegroupmanagers$Delete, - callback: BodyResponseCallback): void; - delete(callback: BodyResponseCallback): void; - delete( - paramsOrCallback?: Params$Resource$Instancegroupmanagers$Delete| - BodyResponseCallback, - optionsOrCallback?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - let params = (paramsOrCallback || {}) as - Params$Resource$Instancegroupmanagers$Delete; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Instancegroupmanagers$Delete; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: - (rootUrl + - '/replicapool/v1beta2/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE' - }, - options), - params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - - /** - * replicapool.instanceGroupManagers.deleteInstances - * @desc Deletes the specified instances. The instances are deleted, then - * removed from the instance group and any target pools of which they were a - * member. The targetSize of the instance group manager is reduced by the - * number of instances deleted. - * @alias replicapool.instanceGroupManagers.deleteInstances - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.instanceGroupManager The name of the instance group manager. - * @param {string} params.project The Google Developers Console project name. - * @param {string} params.zone The name of the zone in which the instance group manager resides. - * @param {().InstanceGroupManagersDeleteInstancesRequest} params.resource Request body data - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - deleteInstances( - params?: Params$Resource$Instancegroupmanagers$Deleteinstances, - options?: MethodOptions): AxiosPromise; - deleteInstances( - params: Params$Resource$Instancegroupmanagers$Deleteinstances, - options: MethodOptions|BodyResponseCallback, - callback: BodyResponseCallback): void; - deleteInstances( - params: Params$Resource$Instancegroupmanagers$Deleteinstances, - callback: BodyResponseCallback): void; - deleteInstances(callback: BodyResponseCallback): void; - deleteInstances( - paramsOrCallback?: - Params$Resource$Instancegroupmanagers$Deleteinstances| - BodyResponseCallback, - optionsOrCallback?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - let params = (paramsOrCallback || {}) as - Params$Resource$Instancegroupmanagers$Deleteinstances; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Instancegroupmanagers$Deleteinstances; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: - (rootUrl + - '/replicapool/v1beta2/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/deleteInstances') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - - /** - * replicapool.instanceGroupManagers.get - * @desc Returns the specified Instance Group Manager resource. - * @alias replicapool.instanceGroupManagers.get - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.instanceGroupManager Name of the instance resource to return. - * @param {string} params.project The Google Developers Console project name. - * @param {string} params.zone The name of the zone in which the instance group manager resides. - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - get(params?: Params$Resource$Instancegroupmanagers$Get, - options?: MethodOptions): AxiosPromise; - get(params: Params$Resource$Instancegroupmanagers$Get, - options: MethodOptions| - BodyResponseCallback, - callback: BodyResponseCallback): void; - get(params: Params$Resource$Instancegroupmanagers$Get, - callback: BodyResponseCallback): void; - get(callback: BodyResponseCallback): void; - get(paramsOrCallback?: Params$Resource$Instancegroupmanagers$Get| - BodyResponseCallback, - optionsOrCallback?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - let params = - (paramsOrCallback || {}) as Params$Resource$Instancegroupmanagers$Get; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Instancegroupmanagers$Get; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: - (rootUrl + - '/replicapool/v1beta2/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'GET' - }, - options), - params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - - /** - * replicapool.instanceGroupManagers.insert - * @desc Creates an instance group manager, as well as the instance group - * and the specified number of instances. - * @alias replicapool.instanceGroupManagers.insert - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.project The Google Developers Console project name. - * @param {integer} params.size Number of instances that should exist. - * @param {string} params.zone The name of the zone in which the instance group manager resides. - * @param {().InstanceGroupManager} params.resource Request body data - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - insert( - params?: Params$Resource$Instancegroupmanagers$Insert, - options?: MethodOptions): AxiosPromise; - insert( - params: Params$Resource$Instancegroupmanagers$Insert, - options: MethodOptions|BodyResponseCallback, - callback: BodyResponseCallback): void; - insert( - params: Params$Resource$Instancegroupmanagers$Insert, - callback: BodyResponseCallback): void; - insert(callback: BodyResponseCallback): void; - insert( - paramsOrCallback?: Params$Resource$Instancegroupmanagers$Insert| - BodyResponseCallback, - optionsOrCallback?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - let params = (paramsOrCallback || {}) as - Params$Resource$Instancegroupmanagers$Insert; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Instancegroupmanagers$Insert; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: - (rootUrl + - '/replicapool/v1beta2/projects/{project}/zones/{zone}/instanceGroupManagers') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: ['project', 'zone', 'size'], - pathParams: ['project', 'zone'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - - /** - * replicapool.instanceGroupManagers.list - * @desc Retrieves the list of Instance Group Manager resources contained - * within the specified zone. - * @alias replicapool.instanceGroupManagers.list - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string=} params.filter Optional. Filter expression for filtering listed resources. - * @param {integer=} params.maxResults Optional. Maximum count of results to be returned. Maximum value is 500 and default value is 500. - * @param {string=} params.pageToken Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request. - * @param {string} params.project The Google Developers Console project name. - * @param {string} params.zone The name of the zone in which the instance group manager resides. - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - list( - params?: Params$Resource$Instancegroupmanagers$List, - options?: MethodOptions): AxiosPromise; - list( - params: Params$Resource$Instancegroupmanagers$List, - options: MethodOptions| - BodyResponseCallback, - callback: BodyResponseCallback): void; - list( - params: Params$Resource$Instancegroupmanagers$List, - callback: BodyResponseCallback): void; - list(callback: BodyResponseCallback): void; - list( - paramsOrCallback?: Params$Resource$Instancegroupmanagers$List| - BodyResponseCallback, - optionsOrCallback?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - let params = (paramsOrCallback || {}) as - Params$Resource$Instancegroupmanagers$List; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Instancegroupmanagers$List; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: - (rootUrl + - '/replicapool/v1beta2/projects/{project}/zones/{zone}/instanceGroupManagers') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'GET' - }, - options), - params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - - /** - * replicapool.instanceGroupManagers.recreateInstances - * @desc Recreates the specified instances. The instances are deleted, then - * recreated using the instance group manager's current instance template. - * @alias replicapool.instanceGroupManagers.recreateInstances - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.instanceGroupManager The name of the instance group manager. - * @param {string} params.project The Google Developers Console project name. - * @param {string} params.zone The name of the zone in which the instance group manager resides. - * @param {().InstanceGroupManagersRecreateInstancesRequest} params.resource Request body data - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - recreateInstances( - params?: Params$Resource$Instancegroupmanagers$Recreateinstances, - options?: MethodOptions): AxiosPromise; - recreateInstances( - params: Params$Resource$Instancegroupmanagers$Recreateinstances, - options: MethodOptions|BodyResponseCallback, - callback: BodyResponseCallback): void; - recreateInstances( - params: Params$Resource$Instancegroupmanagers$Recreateinstances, - callback: BodyResponseCallback): void; - recreateInstances(callback: BodyResponseCallback): void; - recreateInstances( - paramsOrCallback?: - Params$Resource$Instancegroupmanagers$Recreateinstances| - BodyResponseCallback, - optionsOrCallback?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - let params = (paramsOrCallback || {}) as - Params$Resource$Instancegroupmanagers$Recreateinstances; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Instancegroupmanagers$Recreateinstances; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: - (rootUrl + - '/replicapool/v1beta2/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/recreateInstances') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - - /** - * replicapool.instanceGroupManagers.resize - * @desc Resizes the managed instance group up or down. If resized up, new - * instances are created using the current instance template. If resized - * down, instances are removed in the order outlined in Resizing a managed - * instance group. - * @alias replicapool.instanceGroupManagers.resize - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.instanceGroupManager The name of the instance group manager. - * @param {string} params.project The Google Developers Console project name. - * @param {integer} params.size Number of instances that should exist in this Instance Group Manager. - * @param {string} params.zone The name of the zone in which the instance group manager resides. - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - resize( - params?: Params$Resource$Instancegroupmanagers$Resize, - options?: MethodOptions): AxiosPromise; - resize( - params: Params$Resource$Instancegroupmanagers$Resize, - options: MethodOptions|BodyResponseCallback, - callback: BodyResponseCallback): void; - resize( - params: Params$Resource$Instancegroupmanagers$Resize, - callback: BodyResponseCallback): void; - resize(callback: BodyResponseCallback): void; - resize( - paramsOrCallback?: Params$Resource$Instancegroupmanagers$Resize| - BodyResponseCallback, - optionsOrCallback?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - let params = (paramsOrCallback || {}) as - Params$Resource$Instancegroupmanagers$Resize; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Instancegroupmanagers$Resize; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: - (rootUrl + - '/replicapool/v1beta2/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resize') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: ['project', 'zone', 'instanceGroupManager', 'size'], - pathParams: ['instanceGroupManager', 'project', 'zone'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - - /** - * replicapool.instanceGroupManagers.setInstanceTemplate - * @desc Sets the instance template to use when creating new instances in - * this group. Existing instances are not affected. - * @alias replicapool.instanceGroupManagers.setInstanceTemplate - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.instanceGroupManager The name of the instance group manager. - * @param {string} params.project The Google Developers Console project name. - * @param {string} params.zone The name of the zone in which the instance group manager resides. - * @param {().InstanceGroupManagersSetInstanceTemplateRequest} params.resource Request body data - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - setInstanceTemplate( - params?: Params$Resource$Instancegroupmanagers$Setinstancetemplate, - options?: MethodOptions): AxiosPromise; - setInstanceTemplate( - params: Params$Resource$Instancegroupmanagers$Setinstancetemplate, - options: MethodOptions|BodyResponseCallback, - callback: BodyResponseCallback): void; - setInstanceTemplate( - params: Params$Resource$Instancegroupmanagers$Setinstancetemplate, - callback: BodyResponseCallback): void; - setInstanceTemplate(callback: BodyResponseCallback): void; - setInstanceTemplate( - paramsOrCallback?: - Params$Resource$Instancegroupmanagers$Setinstancetemplate| - BodyResponseCallback, - optionsOrCallback?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - let params = (paramsOrCallback || {}) as - Params$Resource$Instancegroupmanagers$Setinstancetemplate; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as - Params$Resource$Instancegroupmanagers$Setinstancetemplate; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: - (rootUrl + - '/replicapool/v1beta2/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setInstanceTemplate') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - - /** - * replicapool.instanceGroupManagers.setTargetPools - * @desc Modifies the target pools to which all new instances in this group - * are assigned. Existing instances in the group are not affected. - * @alias replicapool.instanceGroupManagers.setTargetPools - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.instanceGroupManager The name of the instance group manager. - * @param {string} params.project The Google Developers Console project name. - * @param {string} params.zone The name of the zone in which the instance group manager resides. - * @param {().InstanceGroupManagersSetTargetPoolsRequest} params.resource Request body data - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - setTargetPools( - params?: Params$Resource$Instancegroupmanagers$Settargetpools, - options?: MethodOptions): AxiosPromise; - setTargetPools( - params: Params$Resource$Instancegroupmanagers$Settargetpools, - options: MethodOptions|BodyResponseCallback, - callback: BodyResponseCallback): void; - setTargetPools( - params: Params$Resource$Instancegroupmanagers$Settargetpools, - callback: BodyResponseCallback): void; - setTargetPools(callback: BodyResponseCallback): void; - setTargetPools( - paramsOrCallback?: Params$Resource$Instancegroupmanagers$Settargetpools| - BodyResponseCallback, - optionsOrCallback?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - let params = (paramsOrCallback || {}) as - Params$Resource$Instancegroupmanagers$Settargetpools; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Instancegroupmanagers$Settargetpools; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: - (rootUrl + - '/replicapool/v1beta2/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setTargetPools') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: ['project', 'zone', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'zone'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - } - - export interface Params$Resource$Instancegroupmanagers$Abandoninstances { - /** - * Auth client or API Key for the request - */ - auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; - - /** - * The name of the instance group manager. - */ - instanceGroupManager?: string; - /** - * The Google Developers Console project name. - */ - project?: string; - /** - * The name of the zone in which the instance group manager resides. - */ - zone?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$InstanceGroupManagersAbandonInstancesRequest; - } - export interface Params$Resource$Instancegroupmanagers$Delete { - /** - * Auth client or API Key for the request - */ - auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; - - /** - * Name of the Instance Group Manager resource to delete. - */ - instanceGroupManager?: string; - /** - * The Google Developers Console project name. - */ - project?: string; - /** - * The name of the zone in which the instance group manager resides. - */ - zone?: string; - } - export interface Params$Resource$Instancegroupmanagers$Deleteinstances { - /** - * Auth client or API Key for the request - */ - auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; - - /** - * The name of the instance group manager. - */ - instanceGroupManager?: string; - /** - * The Google Developers Console project name. - */ - project?: string; - /** - * The name of the zone in which the instance group manager resides. - */ - zone?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$InstanceGroupManagersDeleteInstancesRequest; - } - export interface Params$Resource$Instancegroupmanagers$Get { - /** - * Auth client or API Key for the request - */ - auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; - - /** - * Name of the instance resource to return. - */ - instanceGroupManager?: string; - /** - * The Google Developers Console project name. - */ - project?: string; - /** - * The name of the zone in which the instance group manager resides. - */ - zone?: string; - } - export interface Params$Resource$Instancegroupmanagers$Insert { - /** - * Auth client or API Key for the request - */ - auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; - - /** - * The Google Developers Console project name. - */ - project?: string; - /** - * Number of instances that should exist. - */ - size?: number; - /** - * The name of the zone in which the instance group manager resides. - */ - zone?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$InstanceGroupManager; - } - export interface Params$Resource$Instancegroupmanagers$List { - /** - * Auth client or API Key for the request - */ - auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; - - /** - * Optional. Filter expression for filtering listed resources. - */ - filter?: string; - /** - * Optional. Maximum count of results to be returned. Maximum value is 500 - * and default value is 500. - */ - maxResults?: number; - /** - * Optional. Tag returned by a previous list request truncated by - * maxResults. Used to continue a previous list request. - */ - pageToken?: string; - /** - * The Google Developers Console project name. - */ - project?: string; - /** - * The name of the zone in which the instance group manager resides. - */ - zone?: string; - } - export interface Params$Resource$Instancegroupmanagers$Recreateinstances { - /** - * Auth client or API Key for the request - */ - auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; - - /** - * The name of the instance group manager. - */ - instanceGroupManager?: string; - /** - * The Google Developers Console project name. - */ - project?: string; - /** - * The name of the zone in which the instance group manager resides. - */ - zone?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$InstanceGroupManagersRecreateInstancesRequest; - } - export interface Params$Resource$Instancegroupmanagers$Resize { - /** - * Auth client or API Key for the request - */ - auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; - - /** - * The name of the instance group manager. - */ - instanceGroupManager?: string; - /** - * The Google Developers Console project name. - */ - project?: string; - /** - * Number of instances that should exist in this Instance Group Manager. - */ - size?: number; - /** - * The name of the zone in which the instance group manager resides. - */ - zone?: string; - } - export interface Params$Resource$Instancegroupmanagers$Setinstancetemplate { - /** - * Auth client or API Key for the request - */ - auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; - - /** - * The name of the instance group manager. - */ - instanceGroupManager?: string; - /** - * The Google Developers Console project name. - */ - project?: string; - /** - * The name of the zone in which the instance group manager resides. - */ - zone?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$InstanceGroupManagersSetInstanceTemplateRequest; - } - export interface Params$Resource$Instancegroupmanagers$Settargetpools { - /** - * Auth client or API Key for the request - */ - auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; - - /** - * The name of the instance group manager. - */ - instanceGroupManager?: string; - /** - * The Google Developers Console project name. - */ - project?: string; - /** - * The name of the zone in which the instance group manager resides. - */ - zone?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$InstanceGroupManagersSetTargetPoolsRequest; - } - - - export class Resource$Zoneoperations { - root: Replicapool; - constructor(root: Replicapool) { - this.root = root; - this.getRoot.bind(this); - } - - getRoot() { - return this.root; - } - - - /** - * replicapool.zoneOperations.get - * @desc Retrieves the specified zone-specific operation resource. - * @alias replicapool.zoneOperations.get - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.operation Name of the operation resource to return. - * @param {string} params.project Name of the project scoping this request. - * @param {string} params.zone Name of the zone scoping this request. - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - get(params?: Params$Resource$Zoneoperations$Get, - options?: MethodOptions): AxiosPromise; - get(params: Params$Resource$Zoneoperations$Get, - options: MethodOptions|BodyResponseCallback, - callback: BodyResponseCallback): void; - get(params: Params$Resource$Zoneoperations$Get, - callback: BodyResponseCallback): void; - get(callback: BodyResponseCallback): void; - get(paramsOrCallback?: Params$Resource$Zoneoperations$Get| - BodyResponseCallback, - optionsOrCallback?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - let params = - (paramsOrCallback || {}) as Params$Resource$Zoneoperations$Get; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Zoneoperations$Get; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: - (rootUrl + - '/replicapool/v1beta2/projects/{project}/zones/{zone}/operations/{operation}') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'GET' - }, - options), - params, - requiredParams: ['project', 'zone', 'operation'], - pathParams: ['operation', 'project', 'zone'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - - /** - * replicapool.zoneOperations.list - * @desc Retrieves the list of operation resources contained within the - * specified zone. - * @alias replicapool.zoneOperations.list - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string=} params.filter Optional. Filter expression for filtering listed resources. - * @param {integer=} params.maxResults Optional. Maximum count of results to be returned. Maximum value is 500 and default value is 500. - * @param {string=} params.pageToken Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request. - * @param {string} params.project Name of the project scoping this request. - * @param {string} params.zone Name of the zone scoping this request. - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - list(params?: Params$Resource$Zoneoperations$List, options?: MethodOptions): - AxiosPromise; - list( - params: Params$Resource$Zoneoperations$List, - options: MethodOptions|BodyResponseCallback, - callback: BodyResponseCallback): void; - list( - params: Params$Resource$Zoneoperations$List, - callback: BodyResponseCallback): void; - list(callback: BodyResponseCallback): void; - list( - paramsOrCallback?: Params$Resource$Zoneoperations$List| - BodyResponseCallback, - optionsOrCallback?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - let params = - (paramsOrCallback || {}) as Params$Resource$Zoneoperations$List; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Zoneoperations$List; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: - (rootUrl + - '/replicapool/v1beta2/projects/{project}/zones/{zone}/operations') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'GET' - }, - options), - params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - } - - export interface Params$Resource$Zoneoperations$Get { - /** - * Auth client or API Key for the request - */ - auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; - - /** - * Name of the operation resource to return. - */ - operation?: string; - /** - * Name of the project scoping this request. - */ - project?: string; - /** - * Name of the zone scoping this request. - */ - zone?: string; - } - export interface Params$Resource$Zoneoperations$List { - /** - * Auth client or API Key for the request - */ - auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; - - /** - * Optional. Filter expression for filtering listed resources. - */ - filter?: string; - /** - * Optional. Maximum count of results to be returned. Maximum value is 500 - * and default value is 500. - */ - maxResults?: number; - /** - * Optional. Tag returned by a previous list request truncated by - * maxResults. Used to continue a previous list request. - */ - pageToken?: string; - /** - * Name of the project scoping this request. - */ - project?: string; - /** - * Name of the zone scoping this request. - */ - zone?: string; - } -} diff --git a/src/apis/servicecontrol/v1.ts b/src/apis/servicecontrol/v1.ts index 02447d8b738..8e7f02daed9 100644 --- a/src/apis/servicecontrol/v1.ts +++ b/src/apis/servicecontrol/v1.ts @@ -166,6 +166,10 @@ export namespace servicecontrol_v1 { * Metadata about the operation. */ requestMetadata?: Schema$RequestMetadata; + /** + * The resource location information. + */ + resourceLocation?: Schema$ResourceLocation; /** * The resource or collection that is the target of the operation. The name * is a scheme-less URI, not including the API service name. For example: @@ -1026,6 +1030,17 @@ export namespace servicecontrol_v1 { */ resourceName?: string; } + /** + * Location information about a resource. + */ + export interface Schema$ResourceLocation { + /** + * The locations of a resource after the execution of the operation. For + * example: "europe-west1-a" "us-east1" + * "nam3" + */ + currentLocations?: string[]; + } /** * Request message for QuotaController.StartReconciliation. */ diff --git a/src/apis/serviceusage/v1beta1.ts b/src/apis/serviceusage/v1beta1.ts index 3547183aee7..99702ab4d96 100644 --- a/src/apis/serviceusage/v1beta1.ts +++ b/src/apis/serviceusage/v1beta1.ts @@ -612,6 +612,14 @@ export namespace serviceusage_v1beta1 { */ selector?: string; } + /** + * A generic empty message that you can re-use to avoid defining duplicated + * empty messages in your APIs. A typical example is to use it as the request + * or the response type of an API method. For instance: service Foo { rpc + * Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON + * representation for `Empty` is empty JSON object `{}`. + */ + export interface Schema$Empty {} export interface Schema$EnableFailure { /** * An error message describing why the service could not be enabled. diff --git a/src/apis/slides/v1.ts b/src/apis/slides/v1.ts index 4c032a4be4f..7c4aff5ca65 100644 --- a/src/apis/slides/v1.ts +++ b/src/apis/slides/v1.ts @@ -473,7 +473,9 @@ export namespace slides_v1 { objectId?: string; } /** - * Creates a video. + * Creates a video. NOTE: Drive video creation requires that the requesting + * app have at least one of the drive, drive.readonly, or drive.file OAuth + * scopes. */ export interface Schema$CreateVideoRequest { /** @@ -488,7 +490,9 @@ export namespace slides_v1 { /** * The video source's unique identifier for this video. e.g. For * YouTube video https://www.youtube.com/watch?v=7U3axjORYZ0, the ID is - * 7U3axjORYZ0. + * 7U3axjORYZ0. For Drive video + * https://drive.google.com/file/d/1xCgQLFTJi5_Xl8DgW_lcUYq5e-q6Hi5Q the ID + * is 1xCgQLFTJi5_Xl8DgW_lcUYq5e-q6Hi5Q. */ id?: string; /** diff --git a/src/apis/speech/v1.ts b/src/apis/speech/v1.ts index ddc269eab58..4ca41607fea 100644 --- a/src/apis/speech/v1.ts +++ b/src/apis/speech/v1.ts @@ -231,6 +231,13 @@ export namespace speech_v1 { * and phrases in the results. */ export interface Schema$SpeechContext { + /** + * Strength of biasing to use (strong, medium or weak). If you use strong + * biasing option then more likely to see those phrases in the results. If + * biasing streangth is not specified then by default medium biasing would + * be used. + */ + biasingStrength?: string; /** * *Optional* A list of strings containing words and phrases * "hints" so that the speech recognition is more likely to diff --git a/src/apis/testing/v1.ts b/src/apis/testing/v1.ts index 3bab094cd0a..8b38c4f5bc6 100644 --- a/src/apis/testing/v1.ts +++ b/src/apis/testing/v1.ts @@ -159,8 +159,8 @@ export namespace testing_v1 { * Orchestrator offers the following benefits: - No shared state - Crashes * are isolated - Logs are scoped per test See * <https://developer.android.com/training/testing/junit-runner.html#using-android-test-orchestrator> - * for more information about Android Test Orchestrator. Optional, if - * empty, test will be run without orchestrator. + * for more information about Android Test Orchestrator. Optional. If not + * set, the test will be run without the orchestrator. */ orchestratorOption?: string; /** diff --git a/src/apis/videointelligence/v1beta1.ts b/src/apis/videointelligence/v1beta1.ts deleted file mode 100644 index 78901fb706f..00000000000 --- a/src/apis/videointelligence/v1beta1.ts +++ /dev/null @@ -1,1262 +0,0 @@ -/** - * Copyright 2015 Google Inc. All Rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import {AxiosPromise} from 'axios'; -import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; - -import {BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from '../../shared/src'; - -// tslint:disable: no-any -// tslint:disable: class-name -// tslint:disable: variable-name -// tslint:disable: jsdoc-format -// tslint:disable: no-namespace - -export namespace videointelligence_v1beta1 { - export interface Options extends GlobalOptions { - version: 'v1beta1'; - } - - /** - * Cloud Video Intelligence API - * - * Cloud Video Intelligence API. - * - * @example - * const {google} = require('googleapis'); - * const videointelligence = google.videointelligence('v1beta1'); - * - * @namespace videointelligence - * @type {Function} - * @version v1beta1 - * @variation v1beta1 - * @param {object=} options Options for Videointelligence - */ - export class Videointelligence { - _options: GlobalOptions; - google?: GoogleConfigurable; - root = this; - - videos: Resource$Videos; - - constructor(options: GlobalOptions, google?: GoogleConfigurable) { - this._options = options || {}; - this.google = google; - this.getRoot.bind(this); - - this.videos = new Resource$Videos(this); - } - - getRoot() { - return this.root; - } - } - - /** - * Video annotation progress. Included in the `metadata` field of the - * `Operation` returned by the `GetOperation` call of the - * `google::longrunning::Operations` service. - */ - export interface Schema$GoogleCloudVideointelligenceV1beta1_AnnotateVideoProgress { - /** - * Progress metadata for all videos specified in `AnnotateVideoRequest`. - */ - annotationProgress?: - Schema$GoogleCloudVideointelligenceV1beta1_VideoAnnotationProgress[]; - } - /** - * Video annotation request. - */ - export interface Schema$GoogleCloudVideointelligenceV1beta1_AnnotateVideoRequest { - /** - * Requested video annotation features. - */ - features?: string[]; - /** - * The video data bytes. Encoding: base64. If unset, the input video(s) - * should be specified via `input_uri`. If set, `input_uri` should be unset. - */ - inputContent?: string; - /** - * Input video location. Currently, only [Google Cloud - * Storage](https://cloud.google.com/storage/) URIs are supported, which - * must be specified in the following format: `gs://bucket-id/object-id` - * (other URI formats return google.rpc.Code.INVALID_ARGUMENT). For more - * information, see [Request URIs](/storage/docs/reference-uris). A video - * URI may include wildcards in `object-id`, and thus identify multiple - * videos. Supported wildcards: '*' to match 0 or more characters; - * '?' to match 1 character. If unset, the input video should be - * embedded in the request as `input_content`. If set, `input_content` - * should be unset. - */ - inputUri?: string; - /** - * Optional cloud region where annotation should take place. Supported cloud - * regions: `us-east1`, `us-west1`, `europe-west1`, `asia-east1`. If no - * region is specified, a region will be determined based on video file - * location. - */ - locationId?: string; - /** - * Optional location where the output (in JSON format) should be stored. - * Currently, only [Google Cloud Storage](https://cloud.google.com/storage/) - * URIs are supported, which must be specified in the following format: - * `gs://bucket-id/object-id` (other URI formats return - * google.rpc.Code.INVALID_ARGUMENT). For more information, see [Request - * URIs](/storage/docs/reference-uris). - */ - outputUri?: string; - /** - * Additional video context and/or feature-specific parameters. - */ - videoContext?: Schema$GoogleCloudVideointelligenceV1beta1_VideoContext; - } - /** - * Video annotation response. Included in the `response` field of the - * `Operation` returned by the `GetOperation` call of the - * `google::longrunning::Operations` service. - */ - export interface Schema$GoogleCloudVideointelligenceV1beta1_AnnotateVideoResponse { - /** - * Annotation results for all videos specified in `AnnotateVideoRequest`. - */ - annotationResults?: - Schema$GoogleCloudVideointelligenceV1beta1_VideoAnnotationResults[]; - } - /** - * Label annotation. - */ - export interface Schema$GoogleCloudVideointelligenceV1beta1_LabelAnnotation { - /** - * Textual description, e.g. `Fixed-gear bicycle`. - */ - description?: string; - /** - * Language code for `description` in BCP-47 format. - */ - languageCode?: string; - /** - * Where the label was detected and with what confidence. - */ - locations?: Schema$GoogleCloudVideointelligenceV1beta1_LabelLocation[]; - } - /** - * Label location. - */ - export interface Schema$GoogleCloudVideointelligenceV1beta1_LabelLocation { - /** - * Confidence that the label is accurate. Range: [0, 1]. - */ - confidence?: number; - /** - * Label level. - */ - level?: string; - /** - * Video segment. Set to [-1, -1] for video-level labels. Set to [timestamp, - * timestamp] for frame-level labels. Otherwise, corresponds to one of - * `AnnotateSpec.segments` (if specified) or to shot boundaries (if - * requested). - */ - segment?: Schema$GoogleCloudVideointelligenceV1beta1_VideoSegment; - } - /** - * Safe search annotation (based on per-frame visual signals only). If no - * unsafe content has been detected in a frame, no annotations are present for - * that frame. If only some types of unsafe content have been detected in a - * frame, the likelihood is set to `UNKNOWN` for all other types of unsafe - * content. - */ - export interface Schema$GoogleCloudVideointelligenceV1beta1_SafeSearchAnnotation { - /** - * Likelihood of adult content. - */ - adult?: string; - /** - * Likelihood of medical content. - */ - medical?: string; - /** - * Likelihood of racy content. - */ - racy?: string; - /** - * Likelihood that an obvious modification was made to the original version - * to make it appear funny or offensive. - */ - spoof?: string; - /** - * Video time offset in microseconds. - */ - timeOffset?: string; - /** - * Likelihood of violent content. - */ - violent?: string; - } - /** - * Annotation progress for a single video. - */ - export interface Schema$GoogleCloudVideointelligenceV1beta1_VideoAnnotationProgress { - /** - * Video file location in [Google Cloud - * Storage](https://cloud.google.com/storage/). - */ - inputUri?: string; - /** - * Approximate percentage processed thus far. Guaranteed to be 100 when - * fully processed. - */ - progressPercent?: number; - /** - * Time when the request was received. - */ - startTime?: string; - /** - * Time of the most recent update. - */ - updateTime?: string; - } - /** - * Annotation results for a single video. - */ - export interface Schema$GoogleCloudVideointelligenceV1beta1_VideoAnnotationResults { - /** - * If set, indicates an error. Note that for a single `AnnotateVideoRequest` - * some videos may succeed and some may fail. - */ - error?: Schema$GoogleRpc_Status; - /** - * Video file location in [Google Cloud - * Storage](https://cloud.google.com/storage/). - */ - inputUri?: string; - /** - * Label annotations. There is exactly one element for each unique label. - */ - labelAnnotations?: - Schema$GoogleCloudVideointelligenceV1beta1_LabelAnnotation[]; - /** - * Safe search annotations. - */ - safeSearchAnnotations?: - Schema$GoogleCloudVideointelligenceV1beta1_SafeSearchAnnotation[]; - /** - * Shot annotations. Each shot is represented as a video segment. - */ - shotAnnotations?: Schema$GoogleCloudVideointelligenceV1beta1_VideoSegment[]; - } - /** - * Video context and/or feature-specific parameters. - */ - export interface Schema$GoogleCloudVideointelligenceV1beta1_VideoContext { - /** - * If label detection has been requested, what labels should be detected in - * addition to video-level labels or segment-level labels. If unspecified, - * defaults to `SHOT_MODE`. - */ - labelDetectionMode?: string; - /** - * Model to use for label detection. Supported values: "latest" - * and "stable" (the default). - */ - labelDetectionModel?: string; - /** - * Model to use for safe search detection. Supported values: - * "latest" and "stable" (the default). - */ - safeSearchDetectionModel?: string; - /** - * Video segments to annotate. The segments may overlap and are not required - * to be contiguous or span the whole video. If unspecified, each video is - * treated as a single segment. - */ - segments?: Schema$GoogleCloudVideointelligenceV1beta1_VideoSegment[]; - /** - * Model to use for shot change detection. Supported values: - * "latest" and "stable" (the default). - */ - shotChangeDetectionModel?: string; - /** - * Whether the video has been shot from a stationary (i.e. non-moving) - * camera. When set to true, might improve detection accuracy for moving - * objects. - */ - stationaryCamera?: boolean; - } - /** - * Video segment. - */ - export interface Schema$GoogleCloudVideointelligenceV1beta1_VideoSegment { - /** - * End offset in microseconds (inclusive). Unset means 0. - */ - endTimeOffset?: string; - /** - * Start offset in microseconds (inclusive). Unset means 0. - */ - startTimeOffset?: string; - } - /** - * Video annotation progress. Included in the `metadata` field of the - * `Operation` returned by the `GetOperation` call of the - * `google::longrunning::Operations` service. - */ - export interface Schema$GoogleCloudVideointelligenceV1beta2_AnnotateVideoProgress { - /** - * Progress metadata for all videos specified in `AnnotateVideoRequest`. - */ - annotationProgress?: - Schema$GoogleCloudVideointelligenceV1beta2_VideoAnnotationProgress[]; - } - /** - * Video annotation response. Included in the `response` field of the - * `Operation` returned by the `GetOperation` call of the - * `google::longrunning::Operations` service. - */ - export interface Schema$GoogleCloudVideointelligenceV1beta2_AnnotateVideoResponse { - /** - * Annotation results for all videos specified in `AnnotateVideoRequest`. - */ - annotationResults?: - Schema$GoogleCloudVideointelligenceV1beta2_VideoAnnotationResults[]; - } - /** - * Detected entity from video analysis. - */ - export interface Schema$GoogleCloudVideointelligenceV1beta2_Entity { - /** - * Textual description, e.g. `Fixed-gear bicycle`. - */ - description?: string; - /** - * Opaque entity ID. Some IDs may be available in [Google Knowledge Graph - * Search API](https://developers.google.com/knowledge-graph/). - */ - entityId?: string; - /** - * Language code for `description` in BCP-47 format. - */ - languageCode?: string; - } - /** - * Explicit content annotation (based on per-frame visual signals only). If no - * explicit content has been detected in a frame, no annotations are present - * for that frame. - */ - export interface Schema$GoogleCloudVideointelligenceV1beta2_ExplicitContentAnnotation { - /** - * All video frames where explicit content was detected. - */ - frames?: Schema$GoogleCloudVideointelligenceV1beta2_ExplicitContentFrame[]; - } - /** - * Video frame level annotation results for explicit content. - */ - export interface Schema$GoogleCloudVideointelligenceV1beta2_ExplicitContentFrame { - /** - * Likelihood of the pornography content.. - */ - pornographyLikelihood?: string; - /** - * Time-offset, relative to the beginning of the video, corresponding to the - * video frame for this location. - */ - timeOffset?: string; - } - /** - * Label annotation. - */ - export interface Schema$GoogleCloudVideointelligenceV1beta2_LabelAnnotation { - /** - * Common categories for the detected entity. E.g. when the label is - * `Terrier` the category is likely `dog`. And in some cases there might be - * more than one categories e.g. `Terrier` could also be a `pet`. - */ - categoryEntities?: Schema$GoogleCloudVideointelligenceV1beta2_Entity[]; - /** - * Detected entity. - */ - entity?: Schema$GoogleCloudVideointelligenceV1beta2_Entity; - /** - * All video frames where a label was detected. - */ - frames?: Schema$GoogleCloudVideointelligenceV1beta2_LabelFrame[]; - /** - * All video segments where a label was detected. - */ - segments?: Schema$GoogleCloudVideointelligenceV1beta2_LabelSegment[]; - } - /** - * Video frame level annotation results for label detection. - */ - export interface Schema$GoogleCloudVideointelligenceV1beta2_LabelFrame { - /** - * Confidence that the label is accurate. Range: [0, 1]. - */ - confidence?: number; - /** - * Time-offset, relative to the beginning of the video, corresponding to the - * video frame for this location. - */ - timeOffset?: string; - } - /** - * Video segment level annotation results for label detection. - */ - export interface Schema$GoogleCloudVideointelligenceV1beta2_LabelSegment { - /** - * Confidence that the label is accurate. Range: [0, 1]. - */ - confidence?: number; - /** - * Video segment where a label was detected. - */ - segment?: Schema$GoogleCloudVideointelligenceV1beta2_VideoSegment; - } - /** - * Annotation progress for a single video. - */ - export interface Schema$GoogleCloudVideointelligenceV1beta2_VideoAnnotationProgress { - /** - * Output only. Video file location in [Google Cloud - * Storage](https://cloud.google.com/storage/). - */ - inputUri?: string; - /** - * Output only. Approximate percentage processed thus far. Guaranteed to be - * 100 when fully processed. - */ - progressPercent?: number; - /** - * Output only. Time when the request was received. - */ - startTime?: string; - /** - * Output only. Time of the most recent update. - */ - updateTime?: string; - } - /** - * Annotation results for a single video. - */ - export interface Schema$GoogleCloudVideointelligenceV1beta2_VideoAnnotationResults { - /** - * Output only. Non-streaming error only. If set, indicates an error. Note - * that for a single `AnnotateVideoRequest` some videos may succeed and some - * may fail. - */ - error?: Schema$GoogleRpc_Status; - /** - * Explicit content annotation. - */ - explicitAnnotation?: - Schema$GoogleCloudVideointelligenceV1beta2_ExplicitContentAnnotation; - /** - * Label annotations on frame level. There is exactly one element for each - * unique label. - */ - frameLabelAnnotations?: - Schema$GoogleCloudVideointelligenceV1beta2_LabelAnnotation[]; - /** - * Output only. Video file location in [Google Cloud - * Storage](https://cloud.google.com/storage/). - */ - inputUri?: string; - /** - * Label annotations on video level or user specified segment level. There - * is exactly one element for each unique label. - */ - segmentLabelAnnotations?: - Schema$GoogleCloudVideointelligenceV1beta2_LabelAnnotation[]; - /** - * Shot annotations. Each shot is represented as a video segment. - */ - shotAnnotations?: Schema$GoogleCloudVideointelligenceV1beta2_VideoSegment[]; - /** - * Label annotations on shot level. There is exactly one element for each - * unique label. - */ - shotLabelAnnotations?: - Schema$GoogleCloudVideointelligenceV1beta2_LabelAnnotation[]; - } - /** - * Video segment. - */ - export interface Schema$GoogleCloudVideointelligenceV1beta2_VideoSegment { - /** - * Time-offset, relative to the beginning of the video, corresponding to the - * end of the segment (inclusive). - */ - endTimeOffset?: string; - /** - * Time-offset, relative to the beginning of the video, corresponding to the - * start of the segment (inclusive). - */ - startTimeOffset?: string; - } - /** - * Video annotation progress. Included in the `metadata` field of the - * `Operation` returned by the `GetOperation` call of the - * `google::longrunning::Operations` service. - */ - export interface Schema$GoogleCloudVideointelligenceV1p1beta1_AnnotateVideoProgress { - /** - * Progress metadata for all videos specified in `AnnotateVideoRequest`. - */ - annotationProgress?: - Schema$GoogleCloudVideointelligenceV1p1beta1_VideoAnnotationProgress[]; - } - /** - * Video annotation response. Included in the `response` field of the - * `Operation` returned by the `GetOperation` call of the - * `google::longrunning::Operations` service. - */ - export interface Schema$GoogleCloudVideointelligenceV1p1beta1_AnnotateVideoResponse { - /** - * Annotation results for all videos specified in `AnnotateVideoRequest`. - */ - annotationResults?: - Schema$GoogleCloudVideointelligenceV1p1beta1_VideoAnnotationResults[]; - } - /** - * Emotion attribute. - */ - export interface Schema$GoogleCloudVideointelligenceV1p1beta1_EmotionAttribute { - /** - * Emotion entry. - */ - emotion?: string; - /** - * Confidence score. - */ - score?: number; - } - /** - * Detected entity from video analysis. - */ - export interface Schema$GoogleCloudVideointelligenceV1p1beta1_Entity { - /** - * Textual description, e.g. `Fixed-gear bicycle`. - */ - description?: string; - /** - * Opaque entity ID. Some IDs may be available in [Google Knowledge Graph - * Search API](https://developers.google.com/knowledge-graph/). - */ - entityId?: string; - /** - * Language code for `description` in BCP-47 format. - */ - languageCode?: string; - } - /** - * Explicit content annotation (based on per-frame visual signals only). If no - * explicit content has been detected in a frame, no annotations are present - * for that frame. - */ - export interface Schema$GoogleCloudVideointelligenceV1p1beta1_ExplicitContentAnnotation { - /** - * All video frames where explicit content was detected. - */ - frames?: - Schema$GoogleCloudVideointelligenceV1p1beta1_ExplicitContentFrame[]; - } - /** - * Video frame level annotation results for explicit content. - */ - export interface Schema$GoogleCloudVideointelligenceV1p1beta1_ExplicitContentFrame { - /** - * Likelihood of the pornography content.. - */ - pornographyLikelihood?: string; - /** - * Time-offset, relative to the beginning of the video, corresponding to the - * video frame for this location. - */ - timeOffset?: string; - } - /** - * Face detection annotation. - */ - export interface Schema$GoogleCloudVideointelligenceV1p1beta1_FaceDetectionAnnotation { - /** - * All video frames where a face was detected. - */ - frames?: Schema$GoogleCloudVideointelligenceV1p1beta1_FaceDetectionFrame[]; - /** - * All video segments where a face was detected. - */ - segments?: Schema$GoogleCloudVideointelligenceV1p1beta1_FaceSegment[]; - } - /** - * Face detection attribute. - */ - export interface Schema$GoogleCloudVideointelligenceV1p1beta1_FaceDetectionAttribute { - /** - * Emotion attributes. - */ - emotions?: Schema$GoogleCloudVideointelligenceV1p1beta1_EmotionAttribute[]; - /** - * Normalized Bounding box. - */ - normalizedBoundingBox?: - Schema$GoogleCloudVideointelligenceV1p1beta1_NormalizedBoundingBox; - } - /** - * Video frame level annotation results for face detection. - */ - export interface Schema$GoogleCloudVideointelligenceV1p1beta1_FaceDetectionFrame { - /** - * Face attributes in a frame. There can be more than one attributes if the - * same face is detected in multiple locations within the current frame. - */ - attributes?: - Schema$GoogleCloudVideointelligenceV1p1beta1_FaceDetectionAttribute[]; - /** - * Time-offset, relative to the beginning of the video, corresponding to the - * video frame for this location. - */ - timeOffset?: string; - } - /** - * Video segment level annotation results for face detection. - */ - export interface Schema$GoogleCloudVideointelligenceV1p1beta1_FaceSegment { - /** - * Video segment where a face was detected. - */ - segment?: Schema$GoogleCloudVideointelligenceV1p1beta1_VideoSegment; - } - /** - * Label annotation. - */ - export interface Schema$GoogleCloudVideointelligenceV1p1beta1_LabelAnnotation { - /** - * Common categories for the detected entity. E.g. when the label is - * `Terrier` the category is likely `dog`. And in some cases there might be - * more than one categories e.g. `Terrier` could also be a `pet`. - */ - categoryEntities?: Schema$GoogleCloudVideointelligenceV1p1beta1_Entity[]; - /** - * Detected entity. - */ - entity?: Schema$GoogleCloudVideointelligenceV1p1beta1_Entity; - /** - * All video frames where a label was detected. - */ - frames?: Schema$GoogleCloudVideointelligenceV1p1beta1_LabelFrame[]; - /** - * All video segments where a label was detected. - */ - segments?: Schema$GoogleCloudVideointelligenceV1p1beta1_LabelSegment[]; - } - /** - * Video frame level annotation results for label detection. - */ - export interface Schema$GoogleCloudVideointelligenceV1p1beta1_LabelFrame { - /** - * Confidence that the label is accurate. Range: [0, 1]. - */ - confidence?: number; - /** - * Time-offset, relative to the beginning of the video, corresponding to the - * video frame for this location. - */ - timeOffset?: string; - } - /** - * Video segment level annotation results for label detection. - */ - export interface Schema$GoogleCloudVideointelligenceV1p1beta1_LabelSegment { - /** - * Confidence that the label is accurate. Range: [0, 1]. - */ - confidence?: number; - /** - * Video segment where a label was detected. - */ - segment?: Schema$GoogleCloudVideointelligenceV1p1beta1_VideoSegment; - } - /** - * Normalized bounding box. The normalized vertex coordinates are relative to - * the original image. Range: [0, 1]. - */ - export interface Schema$GoogleCloudVideointelligenceV1p1beta1_NormalizedBoundingBox { - /** - * Bottom Y coordinate. - */ - bottom?: number; - /** - * Left X coordinate. - */ - left?: number; - /** - * Right X coordinate. - */ - right?: number; - /** - * Top Y coordinate. - */ - top?: number; - } - /** - * Alternative hypotheses (a.k.a. n-best list). - */ - export interface Schema$GoogleCloudVideointelligenceV1p1beta1_SpeechRecognitionAlternative { - /** - * Output only. The confidence estimate between 0.0 and 1.0. A higher number - * indicates an estimated greater likelihood that the recognized words are - * correct. This field is typically provided only for the top hypothesis, - * and only for `is_final=true` results. Clients should not rely on the - * `confidence` field as it is not guaranteed to be accurate or consistent. - * The default of 0.0 is a sentinel value indicating `confidence` was not - * set. - */ - confidence?: number; - /** - * Output only. Transcript text representing the words that the user spoke. - */ - transcript?: string; - /** - * Output only. A list of word-specific information for each recognized - * word. - */ - words?: Schema$GoogleCloudVideointelligenceV1p1beta1_WordInfo[]; - } - /** - * A speech recognition result corresponding to a portion of the audio. - */ - export interface Schema$GoogleCloudVideointelligenceV1p1beta1_SpeechTranscription { - /** - * Output only. May contain one or more recognition hypotheses (up to the - * maximum specified in `max_alternatives`). These alternatives are ordered - * in terms of accuracy, with the top (first) alternative being the most - * probable, as ranked by the recognizer. - */ - alternatives?: - Schema$GoogleCloudVideointelligenceV1p1beta1_SpeechRecognitionAlternative[]; - } - /** - * Annotation progress for a single video. - */ - export interface Schema$GoogleCloudVideointelligenceV1p1beta1_VideoAnnotationProgress { - /** - * Output only. Video file location in [Google Cloud - * Storage](https://cloud.google.com/storage/). - */ - inputUri?: string; - /** - * Output only. Approximate percentage processed thus far. Guaranteed to be - * 100 when fully processed. - */ - progressPercent?: number; - /** - * Output only. Time when the request was received. - */ - startTime?: string; - /** - * Output only. Time of the most recent update. - */ - updateTime?: string; - } - /** - * Annotation results for a single video. - */ - export interface Schema$GoogleCloudVideointelligenceV1p1beta1_VideoAnnotationResults { - /** - * Output only. Non-streaming error only. If set, indicates an error. Note - * that for a single `AnnotateVideoRequest` some videos may succeed and some - * may fail. - */ - error?: Schema$GoogleRpc_Status; - /** - * Explicit content annotation. - */ - explicitAnnotation?: - Schema$GoogleCloudVideointelligenceV1p1beta1_ExplicitContentAnnotation; - /** - * Face detection annotations. - */ - faceDetectionAnnotations?: - Schema$GoogleCloudVideointelligenceV1p1beta1_FaceDetectionAnnotation[]; - /** - * Label annotations on frame level. There is exactly one element for each - * unique label. - */ - frameLabelAnnotations?: - Schema$GoogleCloudVideointelligenceV1p1beta1_LabelAnnotation[]; - /** - * Output only. Video file location in [Google Cloud - * Storage](https://cloud.google.com/storage/). - */ - inputUri?: string; - /** - * Label annotations on video level or user specified segment level. There - * is exactly one element for each unique label. - */ - segmentLabelAnnotations?: - Schema$GoogleCloudVideointelligenceV1p1beta1_LabelAnnotation[]; - /** - * Shot annotations. Each shot is represented as a video segment. - */ - shotAnnotations?: - Schema$GoogleCloudVideointelligenceV1p1beta1_VideoSegment[]; - /** - * Label annotations on shot level. There is exactly one element for each - * unique label. - */ - shotLabelAnnotations?: - Schema$GoogleCloudVideointelligenceV1p1beta1_LabelAnnotation[]; - /** - * Speech transcription. - */ - speechTranscriptions?: - Schema$GoogleCloudVideointelligenceV1p1beta1_SpeechTranscription[]; - } - /** - * Video segment. - */ - export interface Schema$GoogleCloudVideointelligenceV1p1beta1_VideoSegment { - /** - * Time-offset, relative to the beginning of the video, corresponding to the - * end of the segment (inclusive). - */ - endTimeOffset?: string; - /** - * Time-offset, relative to the beginning of the video, corresponding to the - * start of the segment (inclusive). - */ - startTimeOffset?: string; - } - /** - * Word-specific information for recognized words. Word information is only - * included in the response when certain request parameters are set, such as - * `enable_word_time_offsets`. - */ - export interface Schema$GoogleCloudVideointelligenceV1p1beta1_WordInfo { - /** - * Output only. Time offset relative to the beginning of the audio, and - * corresponding to the end of the spoken word. This field is only set if - * `enable_word_time_offsets=true` and only in the top hypothesis. This is - * an experimental feature and the accuracy of the time offset can vary. - */ - endTime?: string; - /** - * Output only. Time offset relative to the beginning of the audio, and - * corresponding to the start of the spoken word. This field is only set if - * `enable_word_time_offsets=true` and only in the top hypothesis. This is - * an experimental feature and the accuracy of the time offset can vary. - */ - startTime?: string; - /** - * Output only. The word corresponding to this set of information. - */ - word?: string; - } - /** - * Video annotation progress. Included in the `metadata` field of the - * `Operation` returned by the `GetOperation` call of the - * `google::longrunning::Operations` service. - */ - export interface Schema$GoogleCloudVideointelligenceV1_AnnotateVideoProgress { - /** - * Progress metadata for all videos specified in `AnnotateVideoRequest`. - */ - annotationProgress?: - Schema$GoogleCloudVideointelligenceV1_VideoAnnotationProgress[]; - } - /** - * Video annotation response. Included in the `response` field of the - * `Operation` returned by the `GetOperation` call of the - * `google::longrunning::Operations` service. - */ - export interface Schema$GoogleCloudVideointelligenceV1_AnnotateVideoResponse { - /** - * Annotation results for all videos specified in `AnnotateVideoRequest`. - */ - annotationResults?: - Schema$GoogleCloudVideointelligenceV1_VideoAnnotationResults[]; - } - /** - * Detected entity from video analysis. - */ - export interface Schema$GoogleCloudVideointelligenceV1_Entity { - /** - * Textual description, e.g. `Fixed-gear bicycle`. - */ - description?: string; - /** - * Opaque entity ID. Some IDs may be available in [Google Knowledge Graph - * Search API](https://developers.google.com/knowledge-graph/). - */ - entityId?: string; - /** - * Language code for `description` in BCP-47 format. - */ - languageCode?: string; - } - /** - * Explicit content annotation (based on per-frame visual signals only). If no - * explicit content has been detected in a frame, no annotations are present - * for that frame. - */ - export interface Schema$GoogleCloudVideointelligenceV1_ExplicitContentAnnotation { - /** - * All video frames where explicit content was detected. - */ - frames?: Schema$GoogleCloudVideointelligenceV1_ExplicitContentFrame[]; - } - /** - * Video frame level annotation results for explicit content. - */ - export interface Schema$GoogleCloudVideointelligenceV1_ExplicitContentFrame { - /** - * Likelihood of the pornography content.. - */ - pornographyLikelihood?: string; - /** - * Time-offset, relative to the beginning of the video, corresponding to the - * video frame for this location. - */ - timeOffset?: string; - } - /** - * Label annotation. - */ - export interface Schema$GoogleCloudVideointelligenceV1_LabelAnnotation { - /** - * Common categories for the detected entity. E.g. when the label is - * `Terrier` the category is likely `dog`. And in some cases there might be - * more than one categories e.g. `Terrier` could also be a `pet`. - */ - categoryEntities?: Schema$GoogleCloudVideointelligenceV1_Entity[]; - /** - * Detected entity. - */ - entity?: Schema$GoogleCloudVideointelligenceV1_Entity; - /** - * All video frames where a label was detected. - */ - frames?: Schema$GoogleCloudVideointelligenceV1_LabelFrame[]; - /** - * All video segments where a label was detected. - */ - segments?: Schema$GoogleCloudVideointelligenceV1_LabelSegment[]; - } - /** - * Video frame level annotation results for label detection. - */ - export interface Schema$GoogleCloudVideointelligenceV1_LabelFrame { - /** - * Confidence that the label is accurate. Range: [0, 1]. - */ - confidence?: number; - /** - * Time-offset, relative to the beginning of the video, corresponding to the - * video frame for this location. - */ - timeOffset?: string; - } - /** - * Video segment level annotation results for label detection. - */ - export interface Schema$GoogleCloudVideointelligenceV1_LabelSegment { - /** - * Confidence that the label is accurate. Range: [0, 1]. - */ - confidence?: number; - /** - * Video segment where a label was detected. - */ - segment?: Schema$GoogleCloudVideointelligenceV1_VideoSegment; - } - /** - * Annotation progress for a single video. - */ - export interface Schema$GoogleCloudVideointelligenceV1_VideoAnnotationProgress { - /** - * Output only. Video file location in [Google Cloud - * Storage](https://cloud.google.com/storage/). - */ - inputUri?: string; - /** - * Output only. Approximate percentage processed thus far. Guaranteed to be - * 100 when fully processed. - */ - progressPercent?: number; - /** - * Output only. Time when the request was received. - */ - startTime?: string; - /** - * Output only. Time of the most recent update. - */ - updateTime?: string; - } - /** - * Annotation results for a single video. - */ - export interface Schema$GoogleCloudVideointelligenceV1_VideoAnnotationResults { - /** - * Output only. Non-streaming error only. If set, indicates an error. Note - * that for a single `AnnotateVideoRequest` some videos may succeed and some - * may fail. - */ - error?: Schema$GoogleRpc_Status; - /** - * Explicit content annotation. - */ - explicitAnnotation?: - Schema$GoogleCloudVideointelligenceV1_ExplicitContentAnnotation; - /** - * Label annotations on frame level. There is exactly one element for each - * unique label. - */ - frameLabelAnnotations?: - Schema$GoogleCloudVideointelligenceV1_LabelAnnotation[]; - /** - * Output only. Video file location in [Google Cloud - * Storage](https://cloud.google.com/storage/). - */ - inputUri?: string; - /** - * Label annotations on video level or user specified segment level. There - * is exactly one element for each unique label. - */ - segmentLabelAnnotations?: - Schema$GoogleCloudVideointelligenceV1_LabelAnnotation[]; - /** - * Shot annotations. Each shot is represented as a video segment. - */ - shotAnnotations?: Schema$GoogleCloudVideointelligenceV1_VideoSegment[]; - /** - * Label annotations on shot level. There is exactly one element for each - * unique label. - */ - shotLabelAnnotations?: - Schema$GoogleCloudVideointelligenceV1_LabelAnnotation[]; - } - /** - * Video segment. - */ - export interface Schema$GoogleCloudVideointelligenceV1_VideoSegment { - /** - * Time-offset, relative to the beginning of the video, corresponding to the - * end of the segment (inclusive). - */ - endTimeOffset?: string; - /** - * Time-offset, relative to the beginning of the video, corresponding to the - * start of the segment (inclusive). - */ - startTimeOffset?: string; - } - /** - * This resource represents a long-running operation that is the result of a - * network API call. - */ - export interface Schema$GoogleLongrunning_Operation { - /** - * If the value is `false`, it means the operation is still in progress. If - * `true`, the operation is completed, and either `error` or `response` is - * available. - */ - done?: boolean; - /** - * The error result of the operation in case of failure or cancellation. - */ - error?: Schema$GoogleRpc_Status; - /** - * Service-specific metadata associated with the operation. It typically - * contains progress information and common metadata such as create time. - * Some services might not provide such metadata. Any method that returns a - * long-running operation should document the metadata type, if any. - */ - metadata?: any; - /** - * The server-assigned name, which is only unique within the same service - * that originally returns it. If you use the default HTTP mapping, the - * `name` should have the format of `operations/some/unique/name`. - */ - name?: string; - /** - * The normal response of the operation in case of success. If the original - * method returns no data on success, such as `Delete`, the response is - * `google.protobuf.Empty`. If the original method is standard - * `Get`/`Create`/`Update`, the response should be the resource. For other - * methods, the response should have the type `XxxResponse`, where `Xxx` is - * the original method name. For example, if the original method name is - * `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. - */ - response?: any; - } - /** - * The `Status` type defines a logical error model that is suitable for - * different programming environments, including REST APIs and RPC APIs. It is - * used by [gRPC](https://github.com/grpc). The error model is designed to be: - * - Simple to use and understand for most users - Flexible enough to meet - * unexpected needs # Overview The `Status` message contains three pieces of - * data: error code, error message, and error details. The error code should - * be an enum value of google.rpc.Code, but it may accept additional error - * codes if needed. The error message should be a developer-facing English - * message that helps developers *understand* and *resolve* the error. If a - * localized user-facing error message is needed, put the localized message in - * the error details or localize it in the client. The optional error details - * may contain arbitrary information about the error. There is a predefined - * set of error detail types in the package `google.rpc` that can be used for - * common error conditions. # Language mapping The `Status` message is the - * logical representation of the error model, but it is not necessarily the - * actual wire format. When the `Status` message is exposed in different - * client libraries and different wire protocols, it can be mapped - * differently. For example, it will likely be mapped to some exceptions in - * Java, but more likely mapped to some error codes in C. # Other uses The - * error model and the `Status` message can be used in a variety of - * environments, either with or without APIs, to provide a consistent - * developer experience across different environments. Example uses of this - * error model include: - Partial errors. If a service needs to return - * partial errors to the client, it may embed the `Status` in the normal - * response to indicate the partial errors. - Workflow errors. A typical - * workflow has multiple steps. Each step may have a `Status` message for - * error reporting. - Batch operations. If a client uses batch request and - * batch response, the `Status` message should be used directly inside - * batch response, one for each error sub-response. - Asynchronous - * operations. If an API call embeds asynchronous operation results in its - * response, the status of those operations should be represented directly - * using the `Status` message. - Logging. If some API errors are stored in - * logs, the message `Status` could be used directly after any stripping - * needed for security/privacy reasons. - */ - export interface Schema$GoogleRpc_Status { - /** - * The status code, which should be an enum value of google.rpc.Code. - */ - code?: number; - /** - * A list of messages that carry the error details. There is a common set - * of message types for APIs to use. - */ - details?: any[]; - /** - * A developer-facing error message, which should be in English. Any - * user-facing error message should be localized and sent in the - * google.rpc.Status.details field, or localized by the client. - */ - message?: string; - } - - - export class Resource$Videos { - root: Videointelligence; - constructor(root: Videointelligence) { - this.root = root; - this.getRoot.bind(this); - } - - getRoot() { - return this.root; - } - - - /** - * videointelligence.videos.annotate - * @desc Performs asynchronous video annotation. Progress and results can be - * retrieved through the `google.longrunning.Operations` interface. - * `Operation.metadata` contains `AnnotateVideoProgress` (progress). - * `Operation.response` contains `AnnotateVideoResponse` (results). - * @alias videointelligence.videos.annotate - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {().GoogleCloudVideointelligenceV1beta1_AnnotateVideoRequest} params.resource Request body data - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - annotate(params?: Params$Resource$Videos$Annotate, options?: MethodOptions): - AxiosPromise; - annotate( - params: Params$Resource$Videos$Annotate, - options: MethodOptions| - BodyResponseCallback, - callback: BodyResponseCallback): - void; - annotate( - params: Params$Resource$Videos$Annotate, - callback: BodyResponseCallback): - void; - annotate(callback: - BodyResponseCallback): - void; - annotate( - paramsOrCallback?: Params$Resource$Videos$Annotate| - BodyResponseCallback, - optionsOrCallback?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - let params = (paramsOrCallback || {}) as Params$Resource$Videos$Annotate; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Videos$Annotate; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = - options.rootUrl || 'https://videointelligence.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v1beta1/videos:annotate') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: [], - pathParams: [], - context: this.getRoot() - }; - if (callback) { - createAPIRequest( - parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - } - - export interface Params$Resource$Videos$Annotate { - /** - * Auth client or API Key for the request - */ - auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; - - - /** - * Request body metadata - */ - requestBody?: - Schema$GoogleCloudVideointelligenceV1beta1_AnnotateVideoRequest; - } -} diff --git a/src/apis/vision/v1.ts b/src/apis/vision/v1.ts index 5a2aae79ed6..0760f6235bd 100644 --- a/src/apis/vision/v1.ts +++ b/src/apis/vision/v1.ts @@ -1358,7 +1358,8 @@ export namespace vision_v1 { */ export interface Schema$GoogleCloudVisionV1p2beta1WebDetection { /** - * Best guess text labels for the request image. + * The service's best guess as to the topic of the request image. + * Inferred from similar images on the open web. */ bestGuessLabels?: Schema$GoogleCloudVisionV1p2beta1WebDetectionWebLabel[]; /** @@ -2121,7 +2122,8 @@ export namespace vision_v1 { */ export interface Schema$WebDetection { /** - * Best guess text labels for the request image. + * The service's best guess as to the topic of the request image. + * Inferred from similar images on the open web. */ bestGuessLabels?: Schema$WebLabel[]; /** diff --git a/src/apis/vision/v1p1beta1.ts b/src/apis/vision/v1p1beta1.ts index bb73032cf30..b5426461f9c 100644 --- a/src/apis/vision/v1p1beta1.ts +++ b/src/apis/vision/v1p1beta1.ts @@ -1360,7 +1360,8 @@ export namespace vision_v1p1beta1 { */ export interface Schema$GoogleCloudVisionV1p1beta1WebDetection { /** - * Best guess text labels for the request image. + * The service's best guess as to the topic of the request image. + * Inferred from similar images on the open web. */ bestGuessLabels?: Schema$GoogleCloudVisionV1p1beta1WebDetectionWebLabel[]; /** @@ -2209,7 +2210,8 @@ export namespace vision_v1p1beta1 { */ export interface Schema$GoogleCloudVisionV1p2beta1WebDetection { /** - * Best guess text labels for the request image. + * The service's best guess as to the topic of the request image. + * Inferred from similar images on the open web. */ bestGuessLabels?: Schema$GoogleCloudVisionV1p2beta1WebDetectionWebLabel[]; /** @@ -2873,7 +2875,8 @@ export namespace vision_v1p1beta1 { */ export interface Schema$WebDetection { /** - * Best guess text labels for the request image. + * The service's best guess as to the topic of the request image. + * Inferred from similar images on the open web. */ bestGuessLabels?: Schema$WebLabel[]; /** diff --git a/src/apis/vision/v1p2beta1.ts b/src/apis/vision/v1p2beta1.ts index 84adf96e2c6..17b7e6a0252 100644 --- a/src/apis/vision/v1p2beta1.ts +++ b/src/apis/vision/v1p2beta1.ts @@ -1428,7 +1428,8 @@ export namespace vision_v1p2beta1 { */ export interface Schema$GoogleCloudVisionV1p2beta1WebDetection { /** - * Best guess text labels for the request image. + * The service's best guess as to the topic of the request image. + * Inferred from similar images on the open web. */ bestGuessLabels?: Schema$GoogleCloudVisionV1p2beta1WebDetectionWebLabel[]; /** @@ -2101,7 +2102,8 @@ export namespace vision_v1p2beta1 { */ export interface Schema$WebDetection { /** - * Best guess text labels for the request image. + * The service's best guess as to the topic of the request image. + * Inferred from similar images on the open web. */ bestGuessLabels?: Schema$WebLabel[]; /** diff --git a/src/index.ts b/src/index.ts index 397efb83cd6..a1eec2142d3 100644 --- a/src/index.ts +++ b/src/index.ts @@ -127,6 +127,7 @@ export {gmail_v1} from './apis/gmail/v1'; export {groupsmigration_v1} from './apis/groupsmigration/v1'; export {groupssettings_v1} from './apis/groupssettings/v1'; export {iam_v1} from './apis/iam/v1'; +export {iamcredentials_v1} from './apis/iamcredentials/v1'; export {identitytoolkit_v3} from './apis/identitytoolkit/v3'; export {jobs_v2} from './apis/jobs/v2'; export {kgsearch_v1} from './apis/kgsearch/v1'; @@ -160,7 +161,6 @@ export {pubsub_v1beta1a} from './apis/pubsub/v1beta1a'; export {pubsub_v1beta2} from './apis/pubsub/v1beta2'; export {redis_v1beta1} from './apis/redis/v1beta1'; export {replicapool_v1beta1} from './apis/replicapool/v1beta1'; -export {replicapool_v1beta2} from './apis/replicapool/v1beta2'; export {replicapoolupdater_v1beta1} from './apis/replicapoolupdater/v1beta1'; export {reseller_v1} from './apis/reseller/v1'; export {runtimeconfig_v1} from './apis/runtimeconfig/v1';