From 735ac5e32dfb5cfe7ae4e7611a8b7354d2c0b4c0 Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Thu, 24 Jan 2019 15:06:00 -0800 Subject: [PATCH] feat: run the generator --- src/apis/admin/directory_v1.ts | 10 +- src/apis/androidenterprise/v1.ts | 92 +- src/apis/androidpublisher/v1.1.ts | 3 +- src/apis/androidpublisher/v2.ts | 3 +- src/apis/androidpublisher/v3.ts | 3 +- src/apis/bigquerydatatransfer/v1.ts | 31 + src/apis/cloudidentity/v1.ts | 16 +- src/apis/compute/alpha.ts | 1519 +++++++++++++++++----- src/apis/compute/beta.ts | 399 ++++-- src/apis/compute/v1.ts | 176 ++- src/apis/containeranalysis/v1beta1.ts | 42 + src/apis/content/v2.1.ts | 515 +------- src/apis/content/v2.ts | 21 +- src/apis/file/index.ts | 8 +- src/apis/file/v1.ts | 1418 ++++++++++++++++++++ src/apis/gmail/v1.ts | 8 +- src/apis/logging/v2.ts | 74 +- src/apis/logging/v2beta1.ts | 46 +- src/apis/ml/v1.ts | 171 +-- src/apis/monitoring/v3.ts | 2 +- src/apis/pubsub/v1.ts | 4 +- src/apis/serviceconsumermanagement/v1.ts | 6 +- src/apis/serviceusage/v1.ts | 5 +- src/apis/texttospeech/v1.ts | 8 + src/generator/templates/package.json.njk | 2 +- src/index.ts | 1 + 26 files changed, 3421 insertions(+), 1162 deletions(-) create mode 100644 src/apis/file/v1.ts diff --git a/src/apis/admin/directory_v1.ts b/src/apis/admin/directory_v1.ts index 632f71c807c..fe93afd3e73 100644 --- a/src/apis/admin/directory_v1.ts +++ b/src/apis/admin/directory_v1.ts @@ -1841,6 +1841,14 @@ export namespace admin_directory_v1 { * username of User */ primaryEmail?: string; + /** + * Recovery email of the user. + */ + recoveryEmail?: string; + /** + * Recovery phone of the user. + */ + recoveryPhone?: string; relations?: any; sshPublicKeys?: any; /** @@ -2269,7 +2277,7 @@ export namespace admin_directory_v1 { */ export interface Schema$UserPosixAccount { /** - * A POSIX account field identifier. (Read-only) + * A POSIX account field identifier. */ accountId?: string; /** diff --git a/src/apis/androidenterprise/v1.ts b/src/apis/androidenterprise/v1.ts index 54f2d1c660c..875d0cfb8c9 100644 --- a/src/apis/androidenterprise/v1.ts +++ b/src/apis/androidenterprise/v1.ts @@ -427,7 +427,7 @@ export namespace androidenterprise_v1 { */ autoInstallConstraint?: Schema$AutoInstallConstraint[]; /** - * The auto install mode. If unset defaults to AVAILABLE. + * The auto install mode. If unset defaults to "doNotAutoInstall". */ autoInstallMode?: string; /** @@ -1887,8 +1887,8 @@ export namespace androidenterprise_v1 { */ displayMode?: string; /** - * A list of icons representing this website. Must have at least one - * element. + * A list of icons representing this website. If absent, a default icon (for + * create) or the current icon (for update) will be used. */ icons?: Schema$WebAppIcon[]; /** @@ -2927,80 +2927,6 @@ export namespace androidenterprise_v1 { } - /** - * androidenterprise.enterprises.getAndroidDevicePolicyConfig - * @desc Deprecated and unused. - * @alias androidenterprise.enterprises.getAndroidDevicePolicyConfig - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.enterpriseId The ID of the enterprise. - * @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 - */ - getAndroidDevicePolicyConfig( - params?: Params$Resource$Enterprises$Getandroiddevicepolicyconfig, - options?: MethodOptions): - GaxiosPromise; - getAndroidDevicePolicyConfig( - params: Params$Resource$Enterprises$Getandroiddevicepolicyconfig, - options: MethodOptions| - BodyResponseCallback, - callback: BodyResponseCallback): void; - getAndroidDevicePolicyConfig( - params: Params$Resource$Enterprises$Getandroiddevicepolicyconfig, - callback: BodyResponseCallback): void; - getAndroidDevicePolicyConfig( - callback: BodyResponseCallback): void; - getAndroidDevicePolicyConfig( - paramsOrCallback?: - Params$Resource$Enterprises$Getandroiddevicepolicyconfig| - BodyResponseCallback, - optionsOrCallback?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): - void|GaxiosPromise { - let params = (paramsOrCallback || {}) as - Params$Resource$Enterprises$Getandroiddevicepolicyconfig; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Enterprises$Getandroiddevicepolicyconfig; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: - (rootUrl + - '/androidenterprise/v1/enterprises/{enterpriseId}/androidDevicePolicyConfig') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'GET' - }, - options), - params, - requiredParams: ['enterpriseId'], - pathParams: ['enterpriseId'], - context - }; - if (callback) { - createAPIRequest( - parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - /** * androidenterprise.enterprises.getServiceAccount * @desc Returns a service account and credentials. The service account can @@ -3765,18 +3691,6 @@ export namespace androidenterprise_v1 { */ enterpriseId?: string; } - export interface Params$Resource$Enterprises$Getandroiddevicepolicyconfig - extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; - - /** - * The ID of the enterprise. - */ - enterpriseId?: string; - } export interface Params$Resource$Enterprises$Getserviceaccount extends StandardParameters { /** diff --git a/src/apis/androidpublisher/v1.1.ts b/src/apis/androidpublisher/v1.1.ts index b5ec31416a2..079ec3511f0 100644 --- a/src/apis/androidpublisher/v1.1.ts +++ b/src/apis/androidpublisher/v1.1.ts @@ -130,7 +130,8 @@ export namespace androidpublisher_v1_1 { * The type of purchase of the inapp product. This field is only set if this * purchase was not made using the standard in-app billing flow. Possible * values are: - Test (i.e. purchased from a license testing account) - - * Promo (i.e. purchased using a promo code) + * Promo (i.e. purchased using a promo code) - Rewarded (i.e. from watching + * a video ad instead of paying) */ purchaseType?: number; } diff --git a/src/apis/androidpublisher/v2.ts b/src/apis/androidpublisher/v2.ts index 71da36b93dd..e8fd694879f 100644 --- a/src/apis/androidpublisher/v2.ts +++ b/src/apis/androidpublisher/v2.ts @@ -591,7 +591,8 @@ export namespace androidpublisher_v2 { * The type of purchase of the inapp product. This field is only set if this * purchase was not made using the standard in-app billing flow. Possible * values are: - Test (i.e. purchased from a license testing account) - - * Promo (i.e. purchased using a promo code) + * Promo (i.e. purchased using a promo code) - Rewarded (i.e. from watching + * a video ad instead of paying) */ purchaseType?: number; } diff --git a/src/apis/androidpublisher/v3.ts b/src/apis/androidpublisher/v3.ts index d41d53c9578..9016f6d606d 100644 --- a/src/apis/androidpublisher/v3.ts +++ b/src/apis/androidpublisher/v3.ts @@ -583,7 +583,8 @@ export namespace androidpublisher_v3 { * The type of purchase of the inapp product. This field is only set if this * purchase was not made using the standard in-app billing flow. Possible * values are: - Test (i.e. purchased from a license testing account) - - * Promo (i.e. purchased using a promo code) + * Promo (i.e. purchased using a promo code) - Rewarded (i.e. from watching + * a video ad instead of paying) */ purchaseType?: number; } diff --git a/src/apis/bigquerydatatransfer/v1.ts b/src/apis/bigquerydatatransfer/v1.ts index 14193e71a57..500243cdc3b 100644 --- a/src/apis/bigquerydatatransfer/v1.ts +++ b/src/apis/bigquerydatatransfer/v1.ts @@ -395,6 +395,33 @@ export namespace bigquerydatatransfer_v1 { */ name?: string; } + /** + * Options customizing the data transfer schedule. + */ + export interface Schema$ScheduleOptions { + /** + * If true, automatic scheduling of data transfer runs for this + * configuration will be disabled. The runs can be started on ad-hoc basis + * using StartManualTransferRuns API. When automatic scheduling is disabled, + * the TransferConfig.schedule field will be ignored. + */ + disableAutoScheduling?: boolean; + /** + * Defines time to stop scheduling transfer runs. A transfer run cannot be + * scheduled at or after the end time. The end time can be changed at any + * moment. The time when a data transfer can be trigerred manually is not + * limited by this option. + */ + endTime?: string; + /** + * Specifies time to start scheduling transfer runs. The first run will be + * scheduled at or after the start time according to a recurrence pattern + * defined in the schedule string. The start time can be changed at any + * moment. The time when a data transfer can be trigerred manually is not + * limited by this option. + */ + startTime?: string; + } /** * A request to schedule transfer runs for a time range. */ @@ -539,6 +566,10 @@ export namespace bigquerydatatransfer_v1 { * NOTE: the granularity should be at least 8 hours, or less frequent. */ schedule?: string; + /** + * Options customizing the data transfer schedule. + */ + scheduleOptions?: Schema$ScheduleOptions; /** * Output only. State of the most recently updated transfer run. */ diff --git a/src/apis/cloudidentity/v1.ts b/src/apis/cloudidentity/v1.ts index b326e718d03..2b707d6cf7a 100644 --- a/src/apis/cloudidentity/v1.ts +++ b/src/apis/cloudidentity/v1.ts @@ -571,7 +571,7 @@ export namespace cloudidentity_v1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {integer=} params.pageSize Maximum number of Groups to return. View | Default | Maximum -----|---------|-------- BASIC | 200 | 1000 FULL | 50 | 500 + * @param {integer=} params.pageSize Maximum number of groups to return. View | Default | Maximum ----- | ------- | ------- BASIC | 200 | 1000 FULL | 50 | 500 * @param {string=} params.pageToken The next_page_token value returned from a previous list request, if any. * @param {string=} params.parent `Required`. May be made Optional in the future. Customer ID to list all groups from. * @param {string=} params.view Group resource view to be returned. Defaults to [View.BASIC](). @@ -777,7 +777,7 @@ export namespace cloudidentity_v1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {integer=} params.pageSize Maximum number of Groups to return. View | Default | Maximum -----|---------|-------- BASIC | 200 | 1000 FULL | 50 | 500 + * @param {integer=} params.pageSize Maximum number of groups to return. View | Default | Maximum ----- | ------- | ------- BASIC | 200 | 1000 FULL | 50 | 500 * @param {string=} params.pageToken The next_page_token value returned from a previous search request, if any. * @param {string=} params.query `Required`. Query string for performing search on groups. Users can search on parent and label attributes of groups. EXACT match ('==') is supported on parent, and CONTAINS match ('in') is supported on labels. * @param {string=} params.view Group resource view to be returned. Defaults to [View.BASIC](). @@ -885,8 +885,8 @@ export namespace cloudidentity_v1 { auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; /** - * Maximum number of Groups to return. View | Default | Maximum - * -----|---------|-------- BASIC | 200 | 1000 FULL | 50 | 500 + * Maximum number of groups to return. View | Default | Maximum ----- | + * ------- | ------- BASIC | 200 | 1000 FULL | 50 | 500 */ pageSize?: number; /** @@ -953,8 +953,8 @@ export namespace cloudidentity_v1 { auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; /** - * Maximum number of Groups to return. View | Default | Maximum - * -----|---------|-------- BASIC | 200 | 1000 FULL | 50 | 500 + * Maximum number of groups to return. View | Default | Maximum ----- | + * ------- | ------- BASIC | 200 | 1000 FULL | 50 | 500 */ pageSize?: number; /** @@ -1184,7 +1184,7 @@ export namespace cloudidentity_v1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {integer=} params.pageSize Maximum number of Memberships to return. View | Default | Maximum -----|---------|-------- BASIC | 200 | 1000 FULL | 50 | 500 + * @param {integer=} params.pageSize Maximum number of Memberships to return. View | Default | Maximum -----|---------|-------- BASIC| 200 | 1000 FULL | 50 | 500 * @param {string=} params.pageToken The next_page_token value returned from a previous list request, if any. * @param {string} params.parent [Resource name](https://cloud.google.com/apis/design/resource_names) of the Group to list Memberships within. Format: `groups/{group_id}`, where `group_id` is the unique ID assigned to the Group. * @param {string=} params.view Membership resource view to be returned. Defaults to View.BASIC. @@ -1388,7 +1388,7 @@ export namespace cloudidentity_v1 { /** * Maximum number of Memberships to return. View | Default | Maximum - * -----|---------|-------- BASIC | 200 | 1000 FULL | 50 | 500 + * -----|---------|-------- BASIC| 200 | 1000 FULL | 50 | 500 */ pageSize?: number; /** diff --git a/src/apis/compute/alpha.ts b/src/apis/compute/alpha.ts index 2b0519f800d..662f3e7b4bd 100644 --- a/src/apis/compute/alpha.ts +++ b/src/apis/compute/alpha.ts @@ -89,6 +89,7 @@ export namespace compute_alpha { backendServices: Resource$Backendservices; disks: Resource$Disks; diskTypes: Resource$Disktypes; + externalVpnGateways: Resource$Externalvpngateways; firewalls: Resource$Firewalls; forwardingRules: Resource$Forwardingrules; globalAddresses: Resource$Globaladdresses; @@ -163,6 +164,7 @@ export namespace compute_alpha { this.backendServices = new Resource$Backendservices(); this.disks = new Resource$Disks(); this.diskTypes = new Resource$Disktypes(); + this.externalVpnGateways = new Resource$Externalvpngateways(); this.firewalls = new Resource$Firewalls(); this.forwardingRules = new Resource$Forwardingrules(); this.globalAddresses = new Resource$Globaladdresses(); @@ -3201,6 +3203,132 @@ export namespace compute_alpha { */ title?: string; } + /** + * External VPN gateway is the on-premises VPN gateway(s) or another cloud + * provider?s VPN gateway that connects to your Google Cloud VPN gateway. To + * create a highly available VPN from Google Cloud to your on-premises side or + * another Cloud provider's VPN gateway, you must create a external VPN + * gateway resource in GCP, which provides the information to GCP about your + * external VPN gateway. + */ + export interface Schema$ExternalVpnGateway { + /** + * [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; + /** + * List of interfaces for this external VPN gateway. + */ + interfaces?: Schema$ExternalVpnGatewayInterface[]; + /** + * [Output Only] Type of the resource. Always compute#externalVpnGateway for + * externalVpnGateways. + */ + kind?: string; + /** + * A fingerprint for the labels being applied to this ExternalVpnGateway, + * which is essentially a hash of the labels set used for optimistic + * locking. The fingerprint is initially generated by Compute Engine and + * changes after every request to modify or update labels. You must always + * provide an up-to-date fingerprint hash in order to update or change + * labels, otherwise the request will fail with error 412 conditionNotMet. + * To see the latest fingerprint, make a get() request to retrieve an + * ExternalVpnGateway. + */ + labelFingerprint?: string; + /** + * Labels to apply to this ExternalVpnGateway resource. These can be later + * modified by the setLabels method. Each label key/value must comply with + * RFC1035. Label values may be empty. + */ + labels?: {[key: string]: string;}; + /** + * 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; + /** + * Indicates the user-supplied redundancy type of this external VPN gateway. + */ + redundancyType?: string; + /** + * [Output Only] Server-defined URL for the resource. + */ + selfLink?: string; + } + /** + * The interface for the external VPN gateway. + */ + export interface Schema$ExternalVpnGatewayInterface { + /** + * The numeric ID of this interface. The allowed input values for this id + * for different redundancy types of external VPN gateway: + * SINGLE_IP_INTERNALLY_REDUNDANT - 0 TWO_IPS_REDUNDANCY - 0, 1 + * FOUR_IPS_REDUNDANCY - 0, 1, 2, 3 + */ + id?: number; + /** + * IP address of the interface in the external VPN gateway. Only IPv4 is + * supported. This IP address can be either from your on-premise gateway or + * another Cloud provider?s VPN gateway, it cannot be an IP address from + * Google Compute Engine. + */ + ipAddress?: string; + } + /** + * Response to the list request, and contains a list of externalVpnGateways. + */ + export interface Schema$ExternalVpnGatewayList { + etag?: string; + /** + * [Output Only] Unique identifier for the resource; defined by the server. + */ + id?: string; + /** + * A list of ExternalVpnGateway resources. + */ + items?: Schema$ExternalVpnGateway[]; + /** + * [Output Only] Type of resource. Always compute#externalVpnGatewayList for + * lists of externalVpnGateways. + */ + 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?: { + code?: string; + data?: Array<{key?: string; value?: string;}>; + message?: string; + }; + } /** * Represents a Firewall resource. */ @@ -3910,6 +4038,10 @@ export namespace compute_alpha { * [Output Only] Server-defined URL for the resource. */ selfLink?: string; + /** + * [Output Only] Server-defined URL for this resource with the resource id. + */ + selfLinkWithId?: string; sslHealthCheck?: Schema$SSLHealthCheck; tcpHealthCheck?: Schema$TCPHealthCheck; /** @@ -4362,6 +4494,10 @@ export namespace compute_alpha { * [Output Only] Server-defined URL for the resource. */ selfLink?: string; + /** + * [Output Only] Server-defined URL for this resource with the resource id. + */ + selfLinkWithId?: string; /** * How long (in seconds) to wait before claiming failure. The default value * is 5 seconds. It is invalid for timeoutSec to have greater value than @@ -4636,15 +4772,18 @@ export namespace compute_alpha { headerAction?: Schema$HttpHeaderAction; matchRules?: Schema$HttpRouteRuleMatch[]; /** - * In response to a matching matchRule, the load balancer routes the request - * to the backend service specified by this routeAction. Only one of - * routeAction or urlRedirect must be set. + * In response to a matching matchRule, the load balancer performs advanced + * routing actions like URL rewrites, header transformations, etc. prior to + * forwarding the request to the selected backend. If routeAction specifies + * any weightedBackendServices, service must not be set. Conversely if + * service is set, routeAction cannot contain any weightedBackendServices. + * Only one of routeAction or urlRedirect must be set. */ routeAction?: Schema$HttpRouteAction; /** - * In response to a route rule match, the load balancer redirects the - * request to a URL specified by the following HttpRedirectAction. Only one - * of urlRedirect or routeAction must be set. + * When this rule is matched, the request is redirected to a URL specified + * by urlRedirect. If urlRedirect is specified, service or routeAction must + * not be set. */ urlRedirect?: Schema$HttpRedirectAction; } @@ -4773,6 +4912,10 @@ export namespace compute_alpha { * [Output Only] Server-defined URL for the resource. */ selfLink?: string; + /** + * [Output Only] Server-defined URL for this resource with the resource id. + */ + selfLinkWithId?: string; /** * How long (in seconds) to wait before claiming failure. The default value * is 5 seconds. It is invalid for timeoutSec to have a greater value than @@ -5249,6 +5392,10 @@ export namespace compute_alpha { * Source machine image */ sourceMachineImage?: string; + /** + * Source GMI encryption key when creating an instance from GMI. + */ + sourceMachineImageEncryptionKey?: Schema$CustomerEncryptionKey; /** * [Output Only] Whether a VM has been restricted for start because Compute * Engine has detected suspicious activity. @@ -6282,6 +6429,11 @@ export namespace compute_alpha { * from this template. */ disks?: Schema$AttachedDisk[]; + /** + * Display Device properties to enable support for remote display products + * like: Teradici, VNC and TeamViewer + */ + displayDevice?: Schema$DisplayDevice; /** * A list of guest accelerator cards' type and count to use for * instances created from the instance template. @@ -6490,6 +6642,10 @@ export namespace compute_alpha { * URL. */ selfLink?: string; + /** + * [Output Only] Server-defined URL for this resource with the resource id. + */ + selfLinkWithId?: 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 @@ -6703,6 +6859,10 @@ export namespace compute_alpha { * [Output Only] Server-defined URL for the resource. */ selfLink?: string; + /** + * [Output Only] Server-defined URL for this resource with the resource id. + */ + selfLinkWithId?: string; /** * [Output Only] The current state of whether or not this Interconnect is * functional. @@ -6860,6 +7020,10 @@ export namespace compute_alpha { * [Output Only] Server-defined URL for the resource. */ selfLink?: string; + /** + * [Output Only] Server-defined URL for this resource with the resource id. + */ + selfLinkWithId?: string; /** * [Output Only] The current state of this attachment's functionality. */ @@ -7202,6 +7366,10 @@ export namespace compute_alpha { * [Output Only] Server-defined URL for the resource. */ selfLink?: string; + /** + * [Output Only] Server-defined URL for this resource with the resource id. + */ + selfLinkWithId?: string; /** * [Output Only] The status of this InterconnectLocation. If the status is * AVAILABLE, new Interconnects may be provisioned in this @@ -7468,6 +7636,10 @@ export namespace compute_alpha { * [Output Only] Server-defined URL for the resource. */ selfLink?: string; + /** + * [Output Only] Server-defined URL for this resource with the resource id. + */ + selfLinkWithId?: string; /** * If false, licenses will not be copied from the source resource when * creating an image from a disk, disk from snapshot, or snapshot from disk. @@ -7665,6 +7837,10 @@ export namespace compute_alpha { * machine image. */ kind?: string; + /** + * Encryption key to protect the machine image. + */ + machineImageEncryptionKey?: Schema$CustomerEncryptionKey; /** * 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. @@ -7680,6 +7856,10 @@ export namespace compute_alpha { * URL. */ selfLink?: string; + /** + * [Output Only] Server-defined URL for this resource with the resource id. + */ + selfLinkWithId?: string; /** * The source instance used to create the machine image. You can provide * this as a partial or full URL to the resource. For example, the following @@ -7798,6 +7978,10 @@ export namespace compute_alpha { * [Output Only] Server-defined URL for the resource. */ selfLink?: string; + /** + * [Output Only] Server-defined URL for this resource with the resource id. + */ + selfLinkWithId?: string; /** * [Output Only] The name of the zone where the machine type resides, such * as us-central1-a. @@ -8305,6 +8489,10 @@ export namespace compute_alpha { * [Output Only] Server-defined URL for the resource. */ selfLink?: string; + /** + * [Output Only] Server-defined URL for this resource with the resource id. + */ + selfLinkWithId?: string; /** * [Output only] Number of network endpoints in the network endpoint group. */ @@ -8765,6 +8953,10 @@ export namespace compute_alpha { * [Output Only] Server-defined URL for the resource. */ selfLink?: string; + /** + * [Output Only] Server-defined URL for this resource with the resource id. + */ + selfLinkWithId?: string; /** * [Output Only] The total number of nodes in the node group. */ @@ -9000,6 +9192,10 @@ export namespace compute_alpha { * [Output Only] Server-defined URL for the resource. */ selfLink?: string; + /** + * [Output Only] Server-defined URL for this resource with the resource id. + */ + selfLinkWithId?: string; /** * Binding properties for the physical server. */ @@ -9159,6 +9355,10 @@ export namespace compute_alpha { * [Output Only] Server-defined URL for the resource. */ selfLink?: string; + /** + * [Output Only] Server-defined URL for this resource with the resource id. + */ + selfLinkWithId?: string; /** * [Output Only] The name of the zone where the node type resides, such as * us-central1-a. @@ -9341,6 +9541,10 @@ export namespace compute_alpha { * [Output Only] Server-defined URL for the resource. */ selfLink?: string; + /** + * [Output Only] Server-defined URL for this resource with the resource id. + */ + selfLinkWithId?: string; /** * [Output Only] The time that this operation was started by the server. * This value is in RFC3339 text format. @@ -9486,12 +9690,14 @@ export namespace compute_alpha { */ export interface Schema$PathMatcher { /** - * The default HttpRouteAction to follow if none of the pathRules or - * routeRules defined by this pathMatcher are matched. Use - * defaultRouteAction instead of defaultService when more advanced default - * routing actions like traffic splitting and URL rewrites are desired. Only - * one of defaultService, defaultRouteAction or defaultUrlRedirect must be - * set. + * defaultRouteAction takes effect when none of the pathRules or routeRules + * match. The load balancer performs advanced routing actions like URL + * rewrites, header transformations, etc. prior to forwarding the request to + * the selected backend. If defaultRouteAction specifies any + * weightedBackendServices, defaultService must not be set. Conversely if + * defaultService is set, defaultRouteAction cannot contain any + * weightedBackendServices. Only one of defaultRouteAction or + * defaultUrlRedirect must be set. */ defaultRouteAction?: Schema$HttpRouteAction; /** @@ -9501,21 +9707,24 @@ export namespace compute_alpha { * BackendService resource: - * https://www.googleapis.com/compute/v1/projects/project/global/backendServices/backendService * - compute/v1/projects/project/global/backendServices/backendService - - * global/backendServices/backendService Use defaultService instead of - * defaultRouteAction when simple routing to a backend service is desired - * and other advanced capabilities like traffic splitting and URL rewrites - * are not required. Only one of defaultService, defaultRouteAction or - * defaultUrlRedirect must be set. Authorization requires one or more of the - * following Google IAM permissions on the specified resource - * default_service: - compute.backendBuckets.use - + * global/backendServices/backendService If defaultRouteAction is + * additionally specified, advanced routing actions like URL Rewrites, etc. + * take effect prior to sending the request to the backend. However, if + * defaultService is specified, defaultRouteAction cannot contain any + * weightedBackendServices. Conversely, if defaultRouteAction specifies any + * weightedBackendServices, defaultService must not be specified. Only one + * of defaultService, defaultUrlRedirect or + * defaultRouteAction.weightedBackendService must be set. Authorization + * requires one or more of the following Google IAM permissions on the + * specified resource default_service: - compute.backendBuckets.use - * compute.backendServices.use */ defaultService?: string; /** - * The request is redirected by default to a URL specified by - * defaultUrlRedirect when none of the specified pathRules or routeRules - * match. Only one of defaultService, defaultRouteAction or - * defaultUrlRedirect must be set. + * When when none of the specified pathRules or routeRules match, the + * request is redirected to a URL specified by defaultUrlRedirect. If + * defaultUrlRedirect is specified, defaultService or defaultRouteAction + * must not be set. */ defaultUrlRedirect?: Schema$HttpRedirectAction; /** @@ -9566,24 +9775,29 @@ export namespace compute_alpha { */ paths?: string[]; /** - * The HttpRouteAction to follow if this rule is matched. Use routeAction - * instead of service when more advanced default routing actions like - * traffic splitting and Url rewrites are desired. Only one of service, - * routeAction or urlRedirect should must be set. + * In response to a matching path, the load balancer performs advanced + * routing actions like URL rewrites, header transformations, etc. prior to + * forwarding the request to the selected backend. If routeAction specifies + * any weightedBackendServices, service must not be set. Conversely if + * service is set, routeAction cannot contain any weightedBackendServices. + * Only one of routeAction or urlRedirect must be set. */ routeAction?: Schema$HttpRouteAction; /** - * The URL of the backend service resource if this rule is matched. Use - * service instead of routeAction when simple routing to a backend service - * is desired and other advanced capabilities like traffic splitting and - * rewrites are not required. Only one of service, routeAction or - * urlRedirect should must be set. + * The full or partial URL of the backend service resource to which traffic + * is directed if this rule is matched. If routeAction is additionally + * specified, advanced routing actions like URL Rewrites, etc. take effect + * prior to sending the request to the backend. However, if service is + * specified, routeAction cannot contain any weightedBackendService s. + * Conversely, if routeAction specifies any weightedBackendServices, + * service must not be specified. Only one of urlRedirect, service or + * routeAction.weightedBackendService must be set. */ service?: string; /** - * The request is redirected to a URL specified by urlRedirect if this rule - * is matched. Only one of service, routeAction or urlRedirect should must - * be set. + * When a path pattern is matched, the request is redirected to a URL + * specified by urlRedirect. If urlRedirect is specified, service or + * routeAction must not be set. */ urlRedirect?: Schema$HttpRedirectAction; } @@ -9919,6 +10133,10 @@ export namespace compute_alpha { * [Output Only] Server-defined URL for the resource. */ selfLink?: string; + /** + * [Output Only] Server-defined URL for this resource with the resource id. + */ + selfLinkWithId?: string; /** * [Output Only] Status of the region, either UP or DOWN. */ @@ -10437,10 +10655,6 @@ export namespace compute_alpha { }; } export interface Schema$ResourcePolicy { - /** - * Resource policy for persistent disks for creating snapshots. - */ - backupSchedulePolicy?: Schema$ResourcePolicyBackupSchedulePolicy; /** * [Output Only] Creation timestamp in RFC3339 text format. */ @@ -10471,6 +10685,14 @@ export namespace compute_alpha { * [Output Only] Server-defined fully-qualified URL for this resource. */ selfLink?: string; + /** + * [Output Only] Server-defined URL for this resource with the resource id. + */ + selfLinkWithId?: string; + /** + * Resource policy for persistent disks for creating snapshots. + */ + snapshotSchedulePolicy?: Schema$ResourcePolicySnapshotSchedulePolicy; /** * Resource policy applicable to VMs for infrastructure maintenance. */ @@ -10514,76 +10736,6 @@ export namespace compute_alpha { message?: string; }; } - /** - * A backup schedule policy specifies when and how frequently snapshots are to - * be created for the target disk. Also specifies how many and how long these - * scheduled snapshots should be retained. - */ - export interface Schema$ResourcePolicyBackupSchedulePolicy { - /** - * Retention policy applied to snapshots created by this resource policy. - */ - retentionPolicy?: Schema$ResourcePolicyBackupSchedulePolicyRetentionPolicy; - /** - * A Vm Maintenance Policy specifies what kind of infrastructure maintenance - * we are allowed to perform on this VM and when. Schedule that is applied - * to disks covered by this policy. - */ - schedule?: Schema$ResourcePolicyBackupSchedulePolicySchedule; - /** - * Properties with which snapshots are created such as labels, encryption - * keys. - */ - snapshotProperties?: - Schema$ResourcePolicyBackupSchedulePolicySnapshotProperties; - } - /** - * Policy for retention of scheduled snapshots. - */ - export interface Schema$ResourcePolicyBackupSchedulePolicyRetentionPolicy { - /** - * Maximum age of the snapshot that is allowed to be kept. - */ - maxRetentionDays?: number; - /** - * Specifies the behavior to apply to existing, scheduled snapshots - * snapshots if the policy is changed. - */ - onPolicySwitch?: string; - /** - * Specifies the behavior to apply to scheduled snapshots when the source - * disk is deleted. - */ - onSourceDiskDelete?: string; - } - /** - * A schedule for disks where the schedueled operations are performed. - */ - export interface Schema$ResourcePolicyBackupSchedulePolicySchedule { - dailySchedule?: Schema$ResourcePolicyDailyCycle; - hourlySchedule?: Schema$ResourcePolicyHourlyCycle; - weeklySchedule?: Schema$ResourcePolicyWeeklyCycle; - } - /** - * Specified snapshot properties for scheduled snapshots created by this - * policy. - */ - export interface Schema$ResourcePolicyBackupSchedulePolicySnapshotProperties { - /** - * Indication to perform a ?guest aware? snapshot. - */ - guestFlush?: boolean; - /** - * Labels to apply to scheduled snapshots. These can be later modified by - * the setLabels method. Label values may be empty. - */ - labels?: {[key: string]: string;}; - /** - * GCS bucket storage location of the auto snapshot (regional or - * multi-regional). - */ - storageLocations?: string[]; - } /** * Time window specified for daily operations. */ @@ -10659,6 +10811,77 @@ export namespace compute_alpha { message?: string; }; } + /** + * A snapshot schedule policy specifies when and how frequently snapshots are + * to be created for the target disk. Also specifies how many and how long + * these scheduled snapshots should be retained. + */ + export interface Schema$ResourcePolicySnapshotSchedulePolicy { + /** + * Retention policy applied to snapshots created by this resource policy. + */ + retentionPolicy?: + Schema$ResourcePolicySnapshotSchedulePolicyRetentionPolicy; + /** + * A Vm Maintenance Policy specifies what kind of infrastructure maintenance + * we are allowed to perform on this VM and when. Schedule that is applied + * to disks covered by this policy. + */ + schedule?: Schema$ResourcePolicySnapshotSchedulePolicySchedule; + /** + * Properties with which snapshots are created such as labels, encryption + * keys. + */ + snapshotProperties?: + Schema$ResourcePolicySnapshotSchedulePolicySnapshotProperties; + } + /** + * Policy for retention of scheduled snapshots. + */ + export interface Schema$ResourcePolicySnapshotSchedulePolicyRetentionPolicy { + /** + * Maximum age of the snapshot that is allowed to be kept. + */ + maxRetentionDays?: number; + /** + * Specifies the behavior to apply to existing, scheduled snapshots + * snapshots if the policy is changed. + */ + onPolicySwitch?: string; + /** + * Specifies the behavior to apply to scheduled snapshots when the source + * disk is deleted. + */ + onSourceDiskDelete?: string; + } + /** + * A schedule for disks where the schedueled operations are performed. + */ + export interface Schema$ResourcePolicySnapshotSchedulePolicySchedule { + dailySchedule?: Schema$ResourcePolicyDailyCycle; + hourlySchedule?: Schema$ResourcePolicyHourlyCycle; + weeklySchedule?: Schema$ResourcePolicyWeeklyCycle; + } + /** + * Specified snapshot properties for scheduled snapshots created by this + * policy. + */ + export interface Schema$ResourcePolicySnapshotSchedulePolicySnapshotProperties { + /** + * Indication to perform a ?guest aware? snapshot. + */ + guestFlush?: boolean; + /** + * Labels to apply to scheduled snapshots. These can be later modified by + * the setLabels method. Label values may be empty. + */ + labels?: {[key: string]: string;}; + /** + * GCS bucket storage location of the auto snapshot (regional or + * multi-regional). + */ + storageLocations?: string[]; + } export interface Schema$ResourcePolicyVmMaintenancePolicy { /** * Maintenance windows that are applied to VMs covered by this policy. @@ -10927,6 +11150,10 @@ export namespace compute_alpha { * [Output Only] Server-defined URL for the resource. */ selfLink?: string; + /** + * [Output Only] Server-defined URL for this resource with the resource id. + */ + selfLinkWithId?: string; } /** * Description-tagged IP ranges for the router to advertise. @@ -11216,6 +11443,11 @@ export namespace compute_alpha { /** * Indicates whether or not to export logs. This is false by default. */ + enable?: boolean; + /** + * Indicates whether or not to export logs. This is false by default. + * [Deprecated] Use 'enable' instead. + */ enabled?: boolean; /** * Specifies the desired filtering of logs on this NAT. If unspecified, logs @@ -11665,6 +11897,10 @@ export namespace compute_alpha { * [Output Only] Server-defined URL for the resource. */ selfLink?: string; + /** + * [Output Only] Server-defined URL for this resource with the resource id. + */ + selfLinkWithId?: string; /** * The type indicates the intended use of the security policy. CLOUD_ARMOR * policies apply to backend services. FIREWALL policies apply to @@ -12282,6 +12518,10 @@ export namespace compute_alpha { * [Output only] Server-defined URL for the resource. */ selfLink?: string; + /** + * [Output Only] Server-defined URL for this resource with the resource id. + */ + selfLinkWithId?: string; /** * Configuration and status of a self-managed SSL certificate. */ @@ -12571,6 +12811,10 @@ export namespace compute_alpha { * [Output Only] Server-defined URL for the resource. */ selfLink?: string; + /** + * [Output Only] Server-defined URL for this resource with the resource id. + */ + selfLinkWithId?: string; /** * [Output Only] If potential misconfigurations are detected for this SSL * policy, this field will be populated with warning messages. @@ -12671,9 +12915,10 @@ export namespace compute_alpha { */ enableFlowLogs?: boolean; /** - * Whether the VMs in this subnet can directly access Google services via - * internal IPv6 addresses. This field can be both set at resource creation - * time and updated using patch. + * Deprecated in favor of enable in PrivateIpv6GoogleAccess. Whether the VMs + * in this subnet can directly access Google services via internal IPv6 + * addresses. This field can be both set at resource creation time and + * updated using patch. */ enablePrivateV6Access?: boolean; /** @@ -12756,6 +13001,13 @@ export namespace compute_alpha { * creation time and updated using setPrivateIpGoogleAccess. */ privateIpGoogleAccess?: boolean; + /** + * The private IPv6 google access type for the VMs in this subnet. This is + * an expanded field of enablePrivateV6Access. If both fields are set, + * privateIpv6GoogleAccess will take priority. This field can be both set + * at resource creation time and updated using patch. + */ + privateIpv6GoogleAccess?: string; /** * The purpose of the resource. This field can be either PRIVATE_RFC_1918 or * INTERNAL_HTTPS_LOAD_BALANCER. A subnetwork with purpose set to @@ -12790,6 +13042,10 @@ export namespace compute_alpha { * [Output Only] Server-defined URL for the resource. */ selfLink?: string; + /** + * [Output Only] Server-defined URL for this resource with the resource id. + */ + selfLinkWithId?: string; /** * [Output Only] The state of the subnetwork, which can be one of READY or * DRAINING. A subnetwork that is READY is ready to be used. The state of @@ -13029,6 +13285,10 @@ export namespace compute_alpha { * [Output Only] Server-defined URL for the resource. */ selfLink?: string; + /** + * [Output Only] Server-defined URL for this resource with the resource id. + */ + selfLinkWithId?: string; /** * URL to the UrlMap resource that defines the mapping from URL to the * BackendService. @@ -13191,6 +13451,10 @@ export namespace compute_alpha { * [Output Only] Server-defined URL for the resource. */ selfLink?: string; + /** + * [Output Only] Server-defined URL for this resource with the resource id. + */ + selfLinkWithId?: string; /** * URLs to SslCertificate resources that are used to authenticate * connections between users and the load balancer. At least one SSL @@ -13340,6 +13604,10 @@ export namespace compute_alpha { * [Output Only] Server-defined URL for the resource. */ selfLink?: string; + /** + * [Output Only] Server-defined URL for this resource with the resource id. + */ + selfLinkWithId?: string; /** * [Output Only] URL of the zone where the target instance resides. You must * specify this field as part of the HTTP request URL. It is not settable as @@ -13518,6 +13786,10 @@ export namespace compute_alpha { * [Output Only] Server-defined URL for the resource. */ selfLink?: string; + /** + * [Output Only] Server-defined URL for this resource with the resource id. + */ + selfLinkWithId?: string; /** * Session affinity option, must be one of the following values: NONE: * Connections from the same client IP may go to any instance in the pool. @@ -14143,26 +14415,31 @@ export namespace compute_alpha { */ creationTimestamp?: string; /** - * The default HttpRouteAction to follow if none of the hostRules match. Use - * defaultRouteAction instead of defaultService when more advanced default - * routing actions like traffic splitting and Url rewrites are desired. Only - * one of defaultService, defaultRouteAction or defaultUrlRedirect should - * must be set. + * defaultRouteAction takes effect when none of the hostRules match. The + * load balancer performs advanced routing actions like URL rewrites, header + * transformations, etc. prior to forwarding the request to the selected + * backend. If defaultRouteAction specifies any weightedBackendServices, + * defaultService must not be set. Conversely if defaultService is set, + * defaultRouteAction cannot contain any weightedBackendServices. Only one + * of defaultRouteAction or defaultUrlRedirect must be set. */ defaultRouteAction?: Schema$HttpRouteAction; /** - * The URL of the backendService resource if none of the hostRules match. - * Use defaultService instead of defaultRouteAction when simple routing to a - * backendService is desired and other advanced capabilities like traffic - * splitting and rewrites are not required. Only one of defaultService, - * defaultRouteAction or defaultUrlRedirect should must be set. + * The full or partial URL of the defaultService resource to which traffic + * is directed if none of the hostRules match. If defaultRouteAction is + * additionally specified, advanced routing actions like URL Rewrites, etc. + * take effect prior to sending the request to the backend. However, if + * defaultService is specified, defaultRouteAction cannot contain any + * weightedBackendServices. Conversely, if routeAction specifies any + * weightedBackendServices, service must not be specified. Only one of + * defaultService, defaultUrlRedirect or + * defaultRouteAction.weightedBackendService must be set. */ defaultService?: string; /** - * The request is redirected to a default URL specified by - * defaultUrlRedirect if none of the HostRules match. Only one of - * defaultService, defaultRouteAction or defaultUrlRedirect should must be - * set. + * When none of the specified hostRules match, the request is redirected to + * a URL specified by defaultUrlRedirect. If defaultUrlRedirect is + * specified, defaultService or defaultRouteAction must not be set. */ defaultUrlRedirect?: Schema$HttpRedirectAction; /** @@ -22318,47 +22595,49 @@ export namespace compute_alpha { } - export class Resource$Firewalls { + export class Resource$Externalvpngateways { constructor() {} /** - * compute.firewalls.delete - * @desc Deletes the specified firewall. - * @alias compute.firewalls.delete + * compute.externalVpnGateways.delete + * @desc Deletes the specified externalVpnGateway. + * @alias compute.externalVpnGateways.delete * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.firewall Name of the firewall rule to delete. + * @param {string} params.externalVpnGateway Name of the externalVpnGateways to delete. * @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 {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$Firewalls$Delete, options?: MethodOptions): - GaxiosPromise; delete( - params: Params$Resource$Firewalls$Delete, + params?: Params$Resource$Externalvpngateways$Delete, + options?: MethodOptions): GaxiosPromise; + delete( + params: Params$Resource$Externalvpngateways$Delete, options: MethodOptions|BodyResponseCallback, callback: BodyResponseCallback): void; delete( - params: Params$Resource$Firewalls$Delete, + params: Params$Resource$Externalvpngateways$Delete, callback: BodyResponseCallback): void; delete(callback: BodyResponseCallback): void; delete( - paramsOrCallback?: Params$Resource$Firewalls$Delete| + paramsOrCallback?: Params$Resource$Externalvpngateways$Delete| BodyResponseCallback, optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|GaxiosPromise { - let params = (paramsOrCallback || {}) as Params$Resource$Firewalls$Delete; + let params = (paramsOrCallback || {}) as + Params$Resource$Externalvpngateways$Delete; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Firewalls$Delete; + params = {} as Params$Resource$Externalvpngateways$Delete; options = {}; } @@ -22373,14 +22652,14 @@ export namespace compute_alpha { { url: (rootUrl + - '/compute/alpha/projects/{project}/global/firewalls/{firewall}') + '/compute/alpha/projects/{project}/global/externalVpnGateways/{externalVpnGateway}') .replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE' }, options), params, - requiredParams: ['project', 'firewall'], - pathParams: ['firewall', 'project'], + requiredParams: ['project', 'externalVpnGateway'], + pathParams: ['externalVpnGateway', 'project'], context }; if (callback) { @@ -22392,37 +22671,40 @@ export namespace compute_alpha { /** - * compute.firewalls.get - * @desc Returns the specified firewall. - * @alias compute.firewalls.get + * compute.externalVpnGateways.get + * @desc Returns the specified externalVpnGateway. Get a list of available + * externalVpnGateways by making a list() request. + * @alias compute.externalVpnGateways.get * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.firewall Name of the firewall rule to return. + * @param {string} params.externalVpnGateway Name of the externalVpnGateway to return. * @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 */ - get(params?: Params$Resource$Firewalls$Get, - options?: MethodOptions): GaxiosPromise; - get(params: Params$Resource$Firewalls$Get, - options: MethodOptions|BodyResponseCallback, - callback: BodyResponseCallback): void; - get(params: Params$Resource$Firewalls$Get, - callback: BodyResponseCallback): void; - get(callback: BodyResponseCallback): void; - get(paramsOrCallback?: Params$Resource$Firewalls$Get| - BodyResponseCallback, - optionsOrCallback?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|GaxiosPromise { - let params = (paramsOrCallback || {}) as Params$Resource$Firewalls$Get; + get(params?: Params$Resource$Externalvpngateways$Get, + options?: MethodOptions): GaxiosPromise; + get(params: Params$Resource$Externalvpngateways$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Externalvpngateways$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Externalvpngateways$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|GaxiosPromise { + let params = + (paramsOrCallback || {}) as Params$Resource$Externalvpngateways$Get; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Firewalls$Get; + params = {} as Params$Resource$Externalvpngateways$Get; options = {}; } @@ -22437,62 +22719,64 @@ export namespace compute_alpha { { url: (rootUrl + - '/compute/alpha/projects/{project}/global/firewalls/{firewall}') + '/compute/alpha/projects/{project}/global/externalVpnGateways/{externalVpnGateway}') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), params, - requiredParams: ['project', 'firewall'], - pathParams: ['firewall', 'project'], + requiredParams: ['project', 'externalVpnGateway'], + pathParams: ['externalVpnGateway', 'project'], context }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * compute.firewalls.insert - * @desc Creates a firewall rule in the specified project using the data - * included in the request. - * @alias compute.firewalls.insert + * compute.externalVpnGateways.insert + * @desc Creates a ExternalVpnGateway in the specified project using the + * data included in the request. + * @alias compute.externalVpnGateways.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 {().Firewall} params.resource Request body data + * @param {().ExternalVpnGateway} 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$Firewalls$Insert, options?: MethodOptions): - GaxiosPromise; insert( - params: Params$Resource$Firewalls$Insert, + params?: Params$Resource$Externalvpngateways$Insert, + options?: MethodOptions): GaxiosPromise; + insert( + params: Params$Resource$Externalvpngateways$Insert, options: MethodOptions|BodyResponseCallback, callback: BodyResponseCallback): void; insert( - params: Params$Resource$Firewalls$Insert, + params: Params$Resource$Externalvpngateways$Insert, callback: BodyResponseCallback): void; insert(callback: BodyResponseCallback): void; insert( - paramsOrCallback?: Params$Resource$Firewalls$Insert| + paramsOrCallback?: Params$Resource$Externalvpngateways$Insert| BodyResponseCallback, optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|GaxiosPromise { - let params = (paramsOrCallback || {}) as Params$Resource$Firewalls$Insert; + let params = (paramsOrCallback || {}) as + Params$Resource$Externalvpngateways$Insert; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Firewalls$Insert; + params = {} as Params$Resource$Externalvpngateways$Insert; options = {}; } @@ -22505,9 +22789,10 @@ export namespace compute_alpha { const parameters = { options: Object.assign( { - url: (rootUrl + - '/compute/alpha/projects/{project}/global/firewalls') - .replace(/([^:]\/)\/+/g, '$1'), + url: + (rootUrl + + '/compute/alpha/projects/{project}/global/externalVpnGateways') + .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, options), @@ -22525,10 +22810,10 @@ export namespace compute_alpha { /** - * compute.firewalls.list - * @desc Retrieves the list of firewall rules available to the specified + * compute.externalVpnGateways.list + * @desc Retrieves the list of ExternalVpnGateway available to the specified * project. - * @alias compute.firewalls.list + * @alias compute.externalVpnGateways.list * @memberOf! () * * @param {object} params Parameters for request @@ -22541,29 +22826,32 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: Params$Resource$Firewalls$List, options?: MethodOptions): - GaxiosPromise; list( - params: Params$Resource$Firewalls$List, - options: MethodOptions|BodyResponseCallback, - callback: BodyResponseCallback): void; + params?: Params$Resource$Externalvpngateways$List, + options?: MethodOptions): GaxiosPromise; list( - params: Params$Resource$Firewalls$List, - callback: BodyResponseCallback): void; - list(callback: BodyResponseCallback): void; + params: Params$Resource$Externalvpngateways$List, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): void; list( - paramsOrCallback?: Params$Resource$Firewalls$List| - BodyResponseCallback, + params: Params$Resource$Externalvpngateways$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Externalvpngateways$List| + BodyResponseCallback, optionsOrCallback?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): - void|GaxiosPromise { - let params = (paramsOrCallback || {}) as Params$Resource$Firewalls$List; + BodyResponseCallback, + callback?: BodyResponseCallback): + void|GaxiosPromise { + let params = + (paramsOrCallback || {}) as Params$Resource$Externalvpngateways$List; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Firewalls$List; + params = {} as Params$Resource$Externalvpngateways$List; options = {}; } @@ -22576,9 +22864,10 @@ export namespace compute_alpha { const parameters = { options: Object.assign( { - url: (rootUrl + - '/compute/alpha/projects/{project}/global/firewalls') - .replace(/([^:]\/)\/+/g, '$1'), + url: + (rootUrl + + '/compute/alpha/projects/{project}/global/externalVpnGateways') + .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), @@ -22588,53 +22877,53 @@ export namespace compute_alpha { context }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * compute.firewalls.patch - * @desc Updates the specified firewall rule with the data included in the - * request. This method supports PATCH semantics and uses the JSON merge - * patch format and processing rules. - * @alias compute.firewalls.patch + * compute.externalVpnGateways.setLabels + * @desc Sets the labels on an ExternalVpnGateway. To learn more about + * labels, read the Labeling Resources documentation. + * @alias compute.externalVpnGateways.setLabels * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.firewall Name of the firewall rule to patch. * @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 {().Firewall} params.resource Request body data + * @param {string} params.resource_ Name or id of the resource for this request. + * @param {().GlobalSetLabelsRequest} 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$Firewalls$Patch, options?: MethodOptions): - GaxiosPromise; - patch( - params: Params$Resource$Firewalls$Patch, + setLabels( + params?: Params$Resource$Externalvpngateways$Setlabels, + options?: MethodOptions): GaxiosPromise; + setLabels( + params: Params$Resource$Externalvpngateways$Setlabels, options: MethodOptions|BodyResponseCallback, callback: BodyResponseCallback): void; - patch( - params: Params$Resource$Firewalls$Patch, + setLabels( + params: Params$Resource$Externalvpngateways$Setlabels, callback: BodyResponseCallback): void; - patch(callback: BodyResponseCallback): void; - patch( - paramsOrCallback?: Params$Resource$Firewalls$Patch| + setLabels(callback: BodyResponseCallback): void; + setLabels( + paramsOrCallback?: Params$Resource$Externalvpngateways$Setlabels| BodyResponseCallback, optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|GaxiosPromise { - let params = (paramsOrCallback || {}) as Params$Resource$Firewalls$Patch; + let params = (paramsOrCallback || {}) as + Params$Resource$Externalvpngateways$Setlabels; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Firewalls$Patch; + params = {} as Params$Resource$Externalvpngateways$Setlabels; options = {}; } @@ -22649,14 +22938,14 @@ export namespace compute_alpha { { url: (rootUrl + - '/compute/alpha/projects/{project}/global/firewalls/{firewall}') + '/compute/alpha/projects/{project}/global/externalVpnGateways/{resource}/setLabels') .replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH' + method: 'POST' }, options), params, - requiredParams: ['project', 'firewall'], - pathParams: ['firewall', 'project'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context }; if (callback) { @@ -22668,9 +22957,9 @@ export namespace compute_alpha { /** - * compute.firewalls.testIamPermissions + * compute.externalVpnGateways.testIamPermissions * @desc Returns permissions that a caller has on the specified resource. - * @alias compute.firewalls.testIamPermissions + * @alias compute.externalVpnGateways.testIamPermissions * @memberOf! () * * @param {object} params Parameters for request @@ -22682,32 +22971,33 @@ export namespace compute_alpha { * @return {object} Request object */ testIamPermissions( - params?: Params$Resource$Firewalls$Testiampermissions, + params?: Params$Resource$Externalvpngateways$Testiampermissions, options?: MethodOptions): GaxiosPromise; testIamPermissions( - params: Params$Resource$Firewalls$Testiampermissions, + params: Params$Resource$Externalvpngateways$Testiampermissions, options: MethodOptions| BodyResponseCallback, callback: BodyResponseCallback): void; testIamPermissions( - params: Params$Resource$Firewalls$Testiampermissions, + params: Params$Resource$Externalvpngateways$Testiampermissions, callback: BodyResponseCallback): void; testIamPermissions( callback: BodyResponseCallback): void; testIamPermissions( - paramsOrCallback?: Params$Resource$Firewalls$Testiampermissions| + paramsOrCallback?: + Params$Resource$Externalvpngateways$Testiampermissions| BodyResponseCallback, optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|GaxiosPromise { let params = (paramsOrCallback || {}) as - Params$Resource$Firewalls$Testiampermissions; + Params$Resource$Externalvpngateways$Testiampermissions; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Firewalls$Testiampermissions; + params = {} as Params$Resource$Externalvpngateways$Testiampermissions; options = {}; } @@ -22722,7 +23012,7 @@ export namespace compute_alpha { { url: (rootUrl + - '/compute/alpha/projects/{project}/global/firewalls/{resource}/testIamPermissions') + '/compute/alpha/projects/{project}/global/externalVpnGateways/{resource}/testIamPermissions') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -22738,90 +23028,19 @@ export namespace compute_alpha { return createAPIRequest(parameters); } } - - - /** - * compute.firewalls.update - * @desc Updates the specified firewall rule with the data included in the - * request. The PUT method can only update the following fields of firewall - * rule: allowed, description, sourceRanges, sourceTags, targetTags. - * @alias compute.firewalls.update - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.firewall Name of the firewall rule to update. - * @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 {().Firewall} 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 - */ - update(params?: Params$Resource$Firewalls$Update, options?: MethodOptions): - GaxiosPromise; - update( - params: Params$Resource$Firewalls$Update, - options: MethodOptions|BodyResponseCallback, - callback: BodyResponseCallback): void; - update( - params: Params$Resource$Firewalls$Update, - callback: BodyResponseCallback): void; - update(callback: BodyResponseCallback): void; - update( - paramsOrCallback?: Params$Resource$Firewalls$Update| - BodyResponseCallback, - optionsOrCallback?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): - void|GaxiosPromise { - let params = (paramsOrCallback || {}) as Params$Resource$Firewalls$Update; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Firewalls$Update; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: - (rootUrl + - '/compute/alpha/projects/{project}/global/firewalls/{firewall}') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT' - }, - options), - params, - requiredParams: ['project', 'firewall'], - pathParams: ['firewall', 'project'], - context - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } } - export interface Params$Resource$Firewalls$Delete extends StandardParameters { + export interface Params$Resource$Externalvpngateways$Delete extends + StandardParameters { /** * Auth client or API Key for the request */ auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; /** - * Name of the firewall rule to delete. + * Name of the externalVpnGateways to delete. */ - firewall?: string; + externalVpnGateway?: string; /** * Project ID for this request. */ @@ -22840,22 +23059,689 @@ export namespace compute_alpha { */ requestId?: string; } - export interface Params$Resource$Firewalls$Get extends StandardParameters { + export interface Params$Resource$Externalvpngateways$Get extends + StandardParameters { /** * Auth client or API Key for the request */ auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; /** - * Name of the firewall rule to return. + * Name of the externalVpnGateway to return. */ - firewall?: string; + externalVpnGateway?: string; /** * Project ID for this request. */ project?: string; } - export interface Params$Resource$Firewalls$Insert extends StandardParameters { + export interface Params$Resource$Externalvpngateways$Insert extends + StandardParameters { + /** + * 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; + + /** + * Request body metadata + */ + requestBody?: Schema$ExternalVpnGateway; + } + export interface Params$Resource$Externalvpngateways$List extends + StandardParameters { + /** + * 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$Externalvpngateways$Setlabels extends + StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name or id of the resource for this request. + */ + resource?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$GlobalSetLabelsRequest; + } + export interface Params$Resource$Externalvpngateways$Testiampermissions + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name or id of the resource for this request. + */ + resource?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$TestPermissionsRequest; + } + + + export class Resource$Firewalls { + constructor() {} + + + /** + * compute.firewalls.delete + * @desc Deletes the specified firewall. + * @alias compute.firewalls.delete + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.firewall Name of the firewall rule to delete. + * @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 {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$Firewalls$Delete, options?: MethodOptions): + GaxiosPromise; + delete( + params: Params$Resource$Firewalls$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Firewalls$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Firewalls$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|GaxiosPromise { + let params = (paramsOrCallback || {}) as Params$Resource$Firewalls$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Firewalls$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/alpha/projects/{project}/global/firewalls/{firewall}') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE' + }, + options), + params, + requiredParams: ['project', 'firewall'], + pathParams: ['firewall', 'project'], + context + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + + /** + * compute.firewalls.get + * @desc Returns the specified firewall. + * @alias compute.firewalls.get + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.firewall Name of the firewall rule to return. + * @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 + */ + get(params?: Params$Resource$Firewalls$Get, + options?: MethodOptions): GaxiosPromise; + get(params: Params$Resource$Firewalls$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Firewalls$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Firewalls$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, + callback?: BodyResponseCallback): + void|GaxiosPromise { + let params = (paramsOrCallback || {}) as Params$Resource$Firewalls$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Firewalls$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/alpha/projects/{project}/global/firewalls/{firewall}') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'GET' + }, + options), + params, + requiredParams: ['project', 'firewall'], + pathParams: ['firewall', 'project'], + context + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + + /** + * compute.firewalls.insert + * @desc Creates a firewall rule in the specified project using the data + * included in the request. + * @alias compute.firewalls.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 {().Firewall} 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$Firewalls$Insert, options?: MethodOptions): + GaxiosPromise; + insert( + params: Params$Resource$Firewalls$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Firewalls$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Firewalls$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|GaxiosPromise { + let params = (paramsOrCallback || {}) as Params$Resource$Firewalls$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Firewalls$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/alpha/projects/{project}/global/firewalls') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'POST' + }, + options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + + /** + * compute.firewalls.list + * @desc Retrieves the list of firewall rules available to the specified + * project. + * @alias compute.firewalls.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 {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$Firewalls$List, options?: MethodOptions): + GaxiosPromise; + list( + params: Params$Resource$Firewalls$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Firewalls$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Firewalls$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|GaxiosPromise { + let params = (paramsOrCallback || {}) as Params$Resource$Firewalls$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Firewalls$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/alpha/projects/{project}/global/firewalls') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'GET' + }, + options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + + /** + * compute.firewalls.patch + * @desc Updates the specified firewall rule with the data included in the + * request. This method supports PATCH semantics and uses the JSON merge + * patch format and processing rules. + * @alias compute.firewalls.patch + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.firewall Name of the firewall rule to patch. + * @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 {().Firewall} 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$Firewalls$Patch, options?: MethodOptions): + GaxiosPromise; + patch( + params: Params$Resource$Firewalls$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Firewalls$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Firewalls$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|GaxiosPromise { + let params = (paramsOrCallback || {}) as Params$Resource$Firewalls$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Firewalls$Patch; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: + (rootUrl + + '/compute/alpha/projects/{project}/global/firewalls/{firewall}') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH' + }, + options), + params, + requiredParams: ['project', 'firewall'], + pathParams: ['firewall', 'project'], + context + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + + /** + * compute.firewalls.testIamPermissions + * @desc Returns permissions that a caller has on the specified resource. + * @alias compute.firewalls.testIamPermissions + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.project Project ID for this request. + * @param {string} params.resource_ Name or id of the resource 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$Firewalls$Testiampermissions, + options?: MethodOptions): GaxiosPromise; + testIamPermissions( + params: Params$Resource$Firewalls$Testiampermissions, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): void; + testIamPermissions( + params: Params$Resource$Firewalls$Testiampermissions, + callback: BodyResponseCallback): void; + testIamPermissions( + callback: BodyResponseCallback): void; + testIamPermissions( + paramsOrCallback?: Params$Resource$Firewalls$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|GaxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Firewalls$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Firewalls$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/alpha/projects/{project}/global/firewalls/{resource}/testIamPermissions') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'POST' + }, + options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + + /** + * compute.firewalls.update + * @desc Updates the specified firewall rule with the data included in the + * request. The PUT method can only update the following fields of firewall + * rule: allowed, description, sourceRanges, sourceTags, targetTags. + * @alias compute.firewalls.update + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.firewall Name of the firewall rule to update. + * @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 {().Firewall} 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 + */ + update(params?: Params$Resource$Firewalls$Update, options?: MethodOptions): + GaxiosPromise; + update( + params: Params$Resource$Firewalls$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Firewalls$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Firewalls$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|GaxiosPromise { + let params = (paramsOrCallback || {}) as Params$Resource$Firewalls$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Firewalls$Update; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: + (rootUrl + + '/compute/alpha/projects/{project}/global/firewalls/{firewall}') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT' + }, + options), + params, + requiredParams: ['project', 'firewall'], + pathParams: ['firewall', 'project'], + context + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + } + + export interface Params$Resource$Firewalls$Delete extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the firewall rule to delete. + */ + firewall?: 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; + } + export interface Params$Resource$Firewalls$Get extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the firewall rule to return. + */ + firewall?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Firewalls$Insert extends StandardParameters { /** * Auth client or API Key for the request */ @@ -34647,8 +35533,9 @@ export namespace compute_alpha { /** * compute.instances.reset - * @desc Performs a reset on the instance. For more information, see - * Resetting an instance. + * @desc Performs a reset on the instance. This is a hard reset; the VM does + * not do a graceful shutdown. For more information, see Resetting an + * instance. * @alias compute.instances.reset * @memberOf! () * diff --git a/src/apis/compute/beta.ts b/src/apis/compute/beta.ts index 6867208ba61..e6a5b3246ce 100644 --- a/src/apis/compute/beta.ts +++ b/src/apis/compute/beta.ts @@ -5254,6 +5254,11 @@ export namespace compute_beta { * from this template. */ disks?: Schema$AttachedDisk[]; + /** + * Display Device properties to enable support for remote display products + * like: Teradici, VNC and TeamViewer + */ + displayDevice?: Schema$DisplayDevice; /** * A list of guest accelerator cards' type and count to use for * instances created from the instance template. @@ -8038,13 +8043,16 @@ export namespace compute_beta { * BackendService resource: - * https://www.googleapis.com/compute/v1/projects/project/global/backendServices/backendService * - compute/v1/projects/project/global/backendServices/backendService - - * global/backendServices/backendService Use defaultService instead of - * defaultRouteAction when simple routing to a backend service is desired - * and other advanced capabilities like traffic splitting and URL rewrites - * are not required. Only one of defaultService, defaultRouteAction or - * defaultUrlRedirect must be set. Authorization requires one or more of the - * following Google IAM permissions on the specified resource - * default_service: - compute.backendBuckets.use - + * global/backendServices/backendService If defaultRouteAction is + * additionally specified, advanced routing actions like URL Rewrites, etc. + * take effect prior to sending the request to the backend. However, if + * defaultService is specified, defaultRouteAction cannot contain any + * weightedBackendServices. Conversely, if defaultRouteAction specifies any + * weightedBackendServices, defaultService must not be specified. Only one + * of defaultService, defaultUrlRedirect or + * defaultRouteAction.weightedBackendService must be set. Authorization + * requires one or more of the following Google IAM permissions on the + * specified resource default_service: - compute.backendBuckets.use - * compute.backendServices.use */ defaultService?: string; @@ -8081,11 +8089,14 @@ export namespace compute_beta { */ paths?: string[]; /** - * The URL of the backend service resource if this rule is matched. Use - * service instead of routeAction when simple routing to a backend service - * is desired and other advanced capabilities like traffic splitting and - * rewrites are not required. Only one of service, routeAction or - * urlRedirect should must be set. + * The full or partial URL of the backend service resource to which traffic + * is directed if this rule is matched. If routeAction is additionally + * specified, advanced routing actions like URL Rewrites, etc. take effect + * prior to sending the request to the backend. However, if service is + * specified, routeAction cannot contain any weightedBackendService s. + * Conversely, if routeAction specifies any weightedBackendServices, + * service must not be specified. Only one of urlRedirect, service or + * routeAction.weightedBackendService must be set. */ service?: string; } @@ -8759,10 +8770,6 @@ export namespace compute_beta { }; } export interface Schema$ResourcePolicy { - /** - * Resource policy for persistent disks for creating snapshots. - */ - backupSchedulePolicy?: Schema$ResourcePolicyBackupSchedulePolicy; /** * [Output Only] Creation timestamp in RFC3339 text format. */ @@ -8793,6 +8800,10 @@ export namespace compute_beta { * [Output Only] Server-defined fully-qualified URL for this resource. */ selfLink?: string; + /** + * Resource policy for persistent disks for creating snapshots. + */ + snapshotSchedulePolicy?: Schema$ResourcePolicySnapshotSchedulePolicy; } /** * Contains a list of resourcePolicies. @@ -8832,71 +8843,6 @@ export namespace compute_beta { message?: string; }; } - /** - * A backup schedule policy specifies when and how frequently snapshots are to - * be created for the target disk. Also specifies how many and how long these - * scheduled snapshots should be retained. - */ - export interface Schema$ResourcePolicyBackupSchedulePolicy { - /** - * Retention policy applied to snapshots created by this resource policy. - */ - retentionPolicy?: Schema$ResourcePolicyBackupSchedulePolicyRetentionPolicy; - /** - * A Vm Maintenance Policy specifies what kind of infrastructure maintenance - * we are allowed to perform on this VM and when. Schedule that is applied - * to disks covered by this policy. - */ - schedule?: Schema$ResourcePolicyBackupSchedulePolicySchedule; - /** - * Properties with which snapshots are created such as labels, encryption - * keys. - */ - snapshotProperties?: - Schema$ResourcePolicyBackupSchedulePolicySnapshotProperties; - } - /** - * Policy for retention of scheduled snapshots. - */ - export interface Schema$ResourcePolicyBackupSchedulePolicyRetentionPolicy { - /** - * Maximum age of the snapshot that is allowed to be kept. - */ - maxRetentionDays?: number; - /** - * Specifies the behavior to apply to scheduled snapshots when the source - * disk is deleted. - */ - onSourceDiskDelete?: string; - } - /** - * A schedule for disks where the schedueled operations are performed. - */ - export interface Schema$ResourcePolicyBackupSchedulePolicySchedule { - dailySchedule?: Schema$ResourcePolicyDailyCycle; - hourlySchedule?: Schema$ResourcePolicyHourlyCycle; - weeklySchedule?: Schema$ResourcePolicyWeeklyCycle; - } - /** - * Specified snapshot properties for scheduled snapshots created by this - * policy. - */ - export interface Schema$ResourcePolicyBackupSchedulePolicySnapshotProperties { - /** - * Indication to perform a ?guest aware? snapshot. - */ - guestFlush?: boolean; - /** - * Labels to apply to scheduled snapshots. These can be later modified by - * the setLabels method. Label values may be empty. - */ - labels?: {[key: string]: string;}; - /** - * GCS bucket storage location of the auto snapshot (regional or - * multi-regional). - */ - storageLocations?: string[]; - } /** * Time window specified for daily operations. */ @@ -8972,6 +8918,72 @@ export namespace compute_beta { message?: string; }; } + /** + * A snapshot schedule policy specifies when and how frequently snapshots are + * to be created for the target disk. Also specifies how many and how long + * these scheduled snapshots should be retained. + */ + export interface Schema$ResourcePolicySnapshotSchedulePolicy { + /** + * Retention policy applied to snapshots created by this resource policy. + */ + retentionPolicy?: + Schema$ResourcePolicySnapshotSchedulePolicyRetentionPolicy; + /** + * A Vm Maintenance Policy specifies what kind of infrastructure maintenance + * we are allowed to perform on this VM and when. Schedule that is applied + * to disks covered by this policy. + */ + schedule?: Schema$ResourcePolicySnapshotSchedulePolicySchedule; + /** + * Properties with which snapshots are created such as labels, encryption + * keys. + */ + snapshotProperties?: + Schema$ResourcePolicySnapshotSchedulePolicySnapshotProperties; + } + /** + * Policy for retention of scheduled snapshots. + */ + export interface Schema$ResourcePolicySnapshotSchedulePolicyRetentionPolicy { + /** + * Maximum age of the snapshot that is allowed to be kept. + */ + maxRetentionDays?: number; + /** + * Specifies the behavior to apply to scheduled snapshots when the source + * disk is deleted. + */ + onSourceDiskDelete?: string; + } + /** + * A schedule for disks where the schedueled operations are performed. + */ + export interface Schema$ResourcePolicySnapshotSchedulePolicySchedule { + dailySchedule?: Schema$ResourcePolicyDailyCycle; + hourlySchedule?: Schema$ResourcePolicyHourlyCycle; + weeklySchedule?: Schema$ResourcePolicyWeeklyCycle; + } + /** + * Specified snapshot properties for scheduled snapshots created by this + * policy. + */ + export interface Schema$ResourcePolicySnapshotSchedulePolicySnapshotProperties { + /** + * Indication to perform a ?guest aware? snapshot. + */ + guestFlush?: boolean; + /** + * Labels to apply to scheduled snapshots. These can be later modified by + * the setLabels method. Label values may be empty. + */ + labels?: {[key: string]: string;}; + /** + * GCS bucket storage location of the auto snapshot (regional or + * multi-regional). + */ + storageLocations?: string[]; + } /** * Time window specified for weekly operations. */ @@ -9449,6 +9461,10 @@ export namespace compute_beta { * Timeout (in seconds) for ICMP connections. Defaults to 30s if not set. */ icmpIdleTimeoutSec?: number; + /** + * Configure logging on this NAT. + */ + logConfig?: Schema$RouterNatLogConfig; /** * 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 @@ -9500,6 +9516,20 @@ export namespace compute_beta { */ udpIdleTimeoutSec?: number; } + /** + * Configuration of logging on a NAT. + */ + export interface Schema$RouterNatLogConfig { + /** + * Indicates whether or not to export logs. This is false by default. + */ + enable?: boolean; + /** + * Specifies the desired filtering of logs on this NAT. If unspecified, logs + * are exported for all connections handled by this NAT. + */ + filter?: string; + } /** * Defines the IP ranges that want to use NAT for a subnetwork. */ @@ -11811,11 +11841,15 @@ export namespace compute_beta { */ creationTimestamp?: string; /** - * The URL of the backendService resource if none of the hostRules match. - * Use defaultService instead of defaultRouteAction when simple routing to a - * backendService is desired and other advanced capabilities like traffic - * splitting and rewrites are not required. Only one of defaultService, - * defaultRouteAction or defaultUrlRedirect should must be set. + * The full or partial URL of the defaultService resource to which traffic + * is directed if none of the hostRules match. If defaultRouteAction is + * additionally specified, advanced routing actions like URL Rewrites, etc. + * take effect prior to sending the request to the backend. However, if + * defaultService is specified, defaultRouteAction cannot contain any + * weightedBackendServices. Conversely, if routeAction specifies any + * weightedBackendServices, service must not be specified. Only one of + * defaultService, defaultUrlRedirect or + * defaultRouteAction.weightedBackendService must be set. */ defaultService?: string; /** @@ -38979,8 +39013,9 @@ export namespace compute_beta { /** * compute.instances.reset - * @desc Performs a reset on the instance. For more information, see - * Resetting an instance. + * @desc Performs a reset on the instance. This is a hard reset; the VM does + * not do a graceful shutdown. For more information, see Resetting an + * instance. * @example * * // BEFORE RUNNING: * // --------------- @@ -59201,6 +59236,77 @@ export namespace compute_beta { } + /** + * compute.regionDisks.getIamPolicy + * @desc Gets the access control policy for a resource. May be empty if no + * such policy or resource exists. + * @alias compute.regionDisks.getIamPolicy + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.project Project ID for this request. + * @param {string} params.region The name of the region for this request. + * @param {string} params.resource_ Name or id of the resource 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 + */ + getIamPolicy( + params?: Params$Resource$Regiondisks$Getiampolicy, + options?: MethodOptions): GaxiosPromise; + getIamPolicy( + params: Params$Resource$Regiondisks$Getiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + getIamPolicy( + params: Params$Resource$Regiondisks$Getiampolicy, + callback: BodyResponseCallback): void; + getIamPolicy(callback: BodyResponseCallback): void; + getIamPolicy( + paramsOrCallback?: Params$Resource$Regiondisks$Getiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, + callback?: BodyResponseCallback): + void|GaxiosPromise { + let params = + (paramsOrCallback || {}) as Params$Resource$Regiondisks$Getiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regiondisks$Getiampolicy; + 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}/regions/{region}/disks/{resource}/getIamPolicy') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'GET' + }, + options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + /** * compute.regionDisks.insert * @desc Creates a persistent regional disk in the specified project using @@ -59492,6 +59598,78 @@ export namespace compute_beta { } + /** + * compute.regionDisks.setIamPolicy + * @desc Sets the access control policy on the specified resource. Replaces + * any existing policy. + * @alias compute.regionDisks.setIamPolicy + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.project Project ID for this request. + * @param {string} params.region The name of the region for this request. + * @param {string} params.resource_ Name or id of the resource for this request. + * @param {().RegionSetPolicyRequest} 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$Regiondisks$Setiampolicy, + options?: MethodOptions): GaxiosPromise; + setIamPolicy( + params: Params$Resource$Regiondisks$Setiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setIamPolicy( + params: Params$Resource$Regiondisks$Setiampolicy, + callback: BodyResponseCallback): void; + setIamPolicy(callback: BodyResponseCallback): void; + setIamPolicy( + paramsOrCallback?: Params$Resource$Regiondisks$Setiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, + callback?: BodyResponseCallback): + void|GaxiosPromise { + let params = + (paramsOrCallback || {}) as Params$Resource$Regiondisks$Setiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regiondisks$Setiampolicy; + 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}/regions/{region}/disks/{resource}/setIamPolicy') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'POST' + }, + options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + /** * compute.regionDisks.setLabels * @desc Sets the labels on the target regional disk. @@ -59767,6 +59945,26 @@ export namespace compute_beta { */ region?: string; } + export interface Params$Resource$Regiondisks$Getiampolicy extends + StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the region for this request. + */ + region?: string; + /** + * Name or id of the resource for this request. + */ + resource?: string; + } export interface Params$Resource$Regiondisks$Insert extends StandardParameters { /** @@ -59939,6 +60137,31 @@ export namespace compute_beta { */ requestBody?: Schema$RegionDisksResizeRequest; } + export interface Params$Resource$Regiondisks$Setiampolicy extends + StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the region for this request. + */ + region?: string; + /** + * Name or id of the resource for this request. + */ + resource?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$RegionSetPolicyRequest; + } export interface Params$Resource$Regiondisks$Setlabels extends StandardParameters { /** diff --git a/src/apis/compute/v1.ts b/src/apis/compute/v1.ts index 6a2f821bf11..df79e10ed17 100644 --- a/src/apis/compute/v1.ts +++ b/src/apis/compute/v1.ts @@ -2643,6 +2643,31 @@ export namespace compute_v1 { */ enable?: boolean; } + /** + * Encapsulates numeric value that can be either absolute or relative. + */ + export interface Schema$FixedOrPercent { + /** + * [Output Only] Absolute value of VM instances calculated based on the + * specific mode. - If the value is fixed, then the caculated value is + * equal to the fixed value. - If the value is a percent, then the + * calculated value is percent/100 * targetSize. For example, the calculated + * value of a 80% of a managed instance group with 150 instances would be + * (80/100 * 150) = 120 VM instances. If there is a remainder, the number is + * rounded up. + */ + calculated?: number; + /** + * Specifies a fixed number of VM instances. This must be a positive + * integer. + */ + fixed?: number; + /** + * Specifies a percentage of instances between 0 to 100%, inclusive. For + * example, specify 80 for 80%. + */ + percent?: number; + } /** * A ForwardingRule resource. A ForwardingRule resource specifies which pool * of target virtual machines to forward a packet to if it matches the given @@ -2787,6 +2812,22 @@ export namespace compute_v1 { * [Output Only] Server-defined URL for the resource. */ selfLink?: string; + /** + * An optional prefix to the service name for this Forwarding Rule. If + * specified, will be the first label of the fully qualified service name. + * The label must be 1-63 characters long, and comply with RFC1035. + * Specifically, the label 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. This field is only used for internal load balancing. + */ + serviceLabel?: string; + /** + * [Output Only] The internal fully qualified service name for this + * Forwarding Rule. This field is only used for internal load balancing. + */ + serviceName?: string; /** * This field is only used for INTERNAL load balancing. For internal load * balancing, this field identifies the subnetwork that the load balanced IP @@ -4027,6 +4068,10 @@ export namespace compute_v1 { * this URL. */ selfLink?: string; + /** + * [Output Only] The status of this managed instance group. + */ + status?: Schema$InstanceGroupManagerStatus; /** * The URLs for all TargetPool resources to which instances in the * instanceGroup field are added. The target pools automatically apply to @@ -4039,6 +4084,20 @@ export namespace compute_v1 { * changes this number. */ targetSize?: number; + /** + * The update policy for this managed instance group. + */ + updatePolicy?: Schema$InstanceGroupManagerUpdatePolicy; + /** + * Specifies the instance templates used by this managed instance group to + * create instances. Each version is defined by an instanceTemplate. Every + * template can appear at most once per instance group. This field overrides + * the top-level instanceTemplate field. Read more about the relationships + * between these fields. Exactly one version must leave the targetSize field + * unset. That version will be applied to all remaining instances. For more + * information, read about canary updates. + */ + versions?: Schema$InstanceGroupManagerVersion[]; /** * [Output Only] The URL of the zone where the managed instance group is * located (for zonal resources). @@ -4263,6 +4322,74 @@ export namespace compute_v1 { */ targetPools?: string[]; } + export interface Schema$InstanceGroupManagerStatus { + /** + * [Output Only] A bit indicating whether the managed instance group is in a + * stable state. A stable state means that: none of the instances in the + * managed instance group is currently undergoing any type of change (for + * example, creation, restart, or deletion); no future changes are scheduled + * for instances in the managed instance group; and the managed instance + * group itself is not being modified. + */ + isStable?: boolean; + } + export interface Schema$InstanceGroupManagerUpdatePolicy { + /** + * The maximum number of instances that can be created above the specified + * targetSize during the update process. By default, a fixed value of 1 is + * used. This value can be either a fixed number or a percentage if the + * instance group has 10 or more instances. If you set a percentage, the + * number of instances will be rounded up if necessary. At least one of + * either maxSurge or maxUnavailable must be greater than 0. Learn more + * about maxSurge. + */ + maxSurge?: Schema$FixedOrPercent; + /** + * The maximum number of instances that can be unavailable during the update + * process. An instance is considered available if all of the following + * conditions are satisfied: - The instance's status is RUNNING. - + * If there is a health check on the instance group, the instance's + * liveness health check result must be HEALTHY at least once. If there is + * no health check on the group, then the instance only needs to have a + * status of RUNNING to be considered available. By default, a fixed value + * of 1 is used. This value can be either a fixed number or a percentage if + * the instance group has 10 or more instances. If you set a percentage, the + * number of instances will be rounded up if necessary. At least one of + * either maxSurge or maxUnavailable must be greater than 0. Learn more + * about maxUnavailable. + */ + maxUnavailable?: Schema$FixedOrPercent; + /** + * Minimal action to be taken on an instance. You can specify either RESTART + * to restart existing instances or REPLACE to delete and create new + * instances from the target template. If you specify a RESTART, the Updater + * will attempt to perform that action only. However, if the Updater + * determines that the minimal action you specify is not enough to perform + * the update, it might perform a more disruptive action. + */ + minimalAction?: string; + type?: string; + } + export interface Schema$InstanceGroupManagerVersion { + instanceTemplate?: string; + /** + * Name of the version. Unique among all versions in the scope of this + * managed instance group. + */ + name?: string; + /** + * Specifies the intended number of instances to be created from the + * instanceTemplate. The final number of instances created from the template + * will be equal to: - If expressed as a fixed number, the minimum of + * either targetSize.fixed or instanceGroupManager.targetSize is used. - if + * expressed as a percent, the targetSize would be (targetSize.percent/100 * + * InstanceGroupManager.targetSize) If there is a remainder, the number is + * rounded up. If unset, this version will update any remaining instances + * not updated by another version. Read Starting a canary update for more + * information. + */ + targetSize?: Schema$FixedOrPercent; + } export interface Schema$InstanceGroupsAddInstancesRequest { /** * The list of instances to add to the instance group. @@ -6887,13 +7014,16 @@ export namespace compute_v1 { * BackendService resource: - * https://www.googleapis.com/compute/v1/projects/project/global/backendServices/backendService * - compute/v1/projects/project/global/backendServices/backendService - - * global/backendServices/backendService Use defaultService instead of - * defaultRouteAction when simple routing to a backend service is desired - * and other advanced capabilities like traffic splitting and URL rewrites - * are not required. Only one of defaultService, defaultRouteAction or - * defaultUrlRedirect must be set. Authorization requires one or more of the - * following Google IAM permissions on the specified resource - * default_service: - compute.backendBuckets.use - + * global/backendServices/backendService If defaultRouteAction is + * additionally specified, advanced routing actions like URL Rewrites, etc. + * take effect prior to sending the request to the backend. However, if + * defaultService is specified, defaultRouteAction cannot contain any + * weightedBackendServices. Conversely, if defaultRouteAction specifies any + * weightedBackendServices, defaultService must not be specified. Only one + * of defaultService, defaultUrlRedirect or + * defaultRouteAction.weightedBackendService must be set. Authorization + * requires one or more of the following Google IAM permissions on the + * specified resource default_service: - compute.backendBuckets.use - * compute.backendServices.use */ defaultService?: string; @@ -6930,11 +7060,14 @@ export namespace compute_v1 { */ paths?: string[]; /** - * The URL of the backend service resource if this rule is matched. Use - * service instead of routeAction when simple routing to a backend service - * is desired and other advanced capabilities like traffic splitting and - * rewrites are not required. Only one of service, routeAction or - * urlRedirect should must be set. + * The full or partial URL of the backend service resource to which traffic + * is directed if this rule is matched. If routeAction is additionally + * specified, advanced routing actions like URL Rewrites, etc. take effect + * prior to sending the request to the backend. However, if service is + * specified, routeAction cannot contain any weightedBackendService s. + * Conversely, if routeAction specifies any weightedBackendServices, + * service must not be specified. Only one of urlRedirect, service or + * routeAction.weightedBackendService must be set. */ service?: string; } @@ -10159,11 +10292,15 @@ export namespace compute_v1 { */ creationTimestamp?: string; /** - * The URL of the backendService resource if none of the hostRules match. - * Use defaultService instead of defaultRouteAction when simple routing to a - * backendService is desired and other advanced capabilities like traffic - * splitting and rewrites are not required. Only one of defaultService, - * defaultRouteAction or defaultUrlRedirect should must be set. + * The full or partial URL of the defaultService resource to which traffic + * is directed if none of the hostRules match. If defaultRouteAction is + * additionally specified, advanced routing actions like URL Rewrites, etc. + * take effect prior to sending the request to the backend. However, if + * defaultService is specified, defaultRouteAction cannot contain any + * weightedBackendServices. Conversely, if routeAction specifies any + * weightedBackendServices, service must not be specified. Only one of + * defaultService, defaultUrlRedirect or + * defaultRouteAction.weightedBackendService must be set. */ defaultService?: string; /** @@ -32642,8 +32779,9 @@ export namespace compute_v1 { /** * compute.instances.reset - * @desc Performs a reset on the instance. For more information, see - * Resetting an instance. + * @desc Performs a reset on the instance. This is a hard reset; the VM does + * not do a graceful shutdown. For more information, see Resetting an + * instance. * @example * * // BEFORE RUNNING: * // --------------- diff --git a/src/apis/containeranalysis/v1beta1.ts b/src/apis/containeranalysis/v1beta1.ts index 955b1ed53f6..9e50bc665e2 100644 --- a/src/apis/containeranalysis/v1beta1.ts +++ b/src/apis/containeranalysis/v1beta1.ts @@ -960,6 +960,17 @@ export namespace containeranalysis_v1beta1 { */ name?: string; } + export interface Schema$KnowledgeBase { + /** + * The KB name (generally of the form KB[0-9]+ i.e. KB123456). + */ + name?: string; + /** + * A link to the KB in the Windows update catalog - + * https://www.catalog.update.microsoft.com/ + */ + url?: string; + } /** * Layer holds metadata specific to a layer of a Docker image. */ @@ -1588,6 +1599,13 @@ export namespace containeranalysis_v1beta1 { * Note provider assigned impact of the vulnerability. */ severity?: string; + /** + * Windows details get their own format because the information format and + * model don't match a normal detail. Specifically Windows updates are + * done as patches, thus Windows vulnerabilities really are a missing + * package, rather than a package being at an incorrect version. + */ + windowsDetails?: Schema$WindowsDetail[]; } /** * The location of the vulnerability. @@ -1618,6 +1636,30 @@ export namespace containeranalysis_v1beta1 { */ counts?: Schema$FixableTotalByDigest[]; } + export interface Schema$WindowsDetail { + /** + * Required. The CPE URI in [cpe + * format](https://cpe.mitre.org/specification/) in which the vulnerability + * manifests. Examples include distro or storage location for vulnerable + * jar. + */ + cpeUri?: string; + /** + * The description of the vulnerability. + */ + description?: string; + /** + * Required. The names of the KBs which have hotfixes to mitigate this + * vulnerability. Note that there may be multiple hotfixes (and thus + * multiple KBs) that mitigate a given vulnerability. Currently any listed + * kb's presence is considered a fix. + */ + fixingKbs?: Schema$KnowledgeBase[]; + /** + * Required. The name of the vulnerability. + */ + name?: string; + } export class Resource$Projects { diff --git a/src/apis/content/v2.1.ts b/src/apis/content/v2.1.ts index 2a32a80818e..f0873caf898 100644 --- a/src/apis/content/v2.1.ts +++ b/src/apis/content/v2.1.ts @@ -89,7 +89,6 @@ export namespace content_v2_1 { datafeedstatuses: Resource$Datafeedstatuses; liasettings: Resource$Liasettings; orderinvoices: Resource$Orderinvoices; - orderpayments: Resource$Orderpayments; orderreports: Resource$Orderreports; orderreturns: Resource$Orderreturns; orders: Resource$Orders; @@ -108,7 +107,6 @@ export namespace content_v2_1 { this.datafeedstatuses = new Resource$Datafeedstatuses(); this.liasettings = new Resource$Liasettings(); this.orderinvoices = new Resource$Orderinvoices(); - this.orderpayments = new Resource$Orderpayments(); this.orderreports = new Resource$Orderreports(); this.orderreturns = new Resource$Orderreturns(); this.orders = new Resource$Orders(); @@ -2328,80 +2326,6 @@ export namespace content_v2_1 { */ value?: string; } - export interface Schema$OrderpaymentsNotifyAuthApprovedRequest { - authAmountPretax?: Schema$Price; - authAmountTax?: Schema$Price; - } - export interface Schema$OrderpaymentsNotifyAuthApprovedResponse { - /** - * The status of the execution. - */ - executionStatus?: string; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "content#orderpaymentsNotifyAuthApprovedResponse". - */ - kind?: string; - } - export interface Schema$OrderpaymentsNotifyAuthDeclinedRequest { - /** - * Reason why payment authorization was declined. - */ - declineReason?: string; - } - export interface Schema$OrderpaymentsNotifyAuthDeclinedResponse { - /** - * The status of the execution. - */ - executionStatus?: string; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "content#orderpaymentsNotifyAuthDeclinedResponse". - */ - kind?: string; - } - export interface Schema$OrderpaymentsNotifyChargeRequest { - /** - * Whether charge was successful. - */ - chargeState?: string; - /** - * Invoice IDs from the orderinvoices service that correspond to the charge. - */ - invoiceIds?: string[]; - } - export interface Schema$OrderpaymentsNotifyChargeResponse { - /** - * The status of the execution. - */ - executionStatus?: string; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "content#orderpaymentsNotifyChargeResponse". - */ - kind?: string; - } - export interface Schema$OrderpaymentsNotifyRefundRequest { - /** - * Invoice IDs from the orderinvoices service that correspond to the refund. - */ - invoiceIds?: string[]; - /** - * Whether refund was successful. - */ - refundState?: string; - } - export interface Schema$OrderpaymentsNotifyRefundResponse { - /** - * The status of the execution. - */ - executionStatus?: string; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "content#orderpaymentsNotifyRefundResponse". - */ - kind?: string; - } export interface Schema$OrderPromotion { /** * Items which this promotion may be applied to. If empty, there are no @@ -2422,9 +2346,10 @@ export namespace content_v2_1 { */ merchantPromotionId?: string; /** - * Estimated discount applied to pre-tax amount. + * Estimated discount applied to price. Amount is pre-tax or post-tax + * depending on location of order. */ - pretaxValue?: Schema$Price; + priceValue?: Schema$Price; /** * A short title of the promotion to be shown on the checkout page. */ @@ -4628,10 +4553,6 @@ export namespace content_v2_1 { * Details of the requested shipping for the line item. */ shippingDetails?: Schema$OrderLineItemShippingDetails; - /** - * Unit tax for the line item. - */ - unitTax?: Schema$Price; } export interface Schema$TestOrderLineItemProduct { /** @@ -4671,7 +4592,9 @@ export namespace content_v2_1 { */ offerId?: string; /** - * The price for the product. + * The price for the product. Tax is automatically calculated for MFL + * orders. For non-MFL orders, tax settings from Merchant Center are + * applied. */ price?: Schema$Price; /** @@ -4697,9 +4620,10 @@ export namespace content_v2_1 { */ promotions?: Schema$Promotion[]; /** - * [required] Price of the unit, before applying taxes. + * [required] Pre-tax or post-tax price of the unit depending on the + * locality of the order. */ - unitPricePretax?: Schema$Price; + unitPrice?: Schema$Price; /** * Tax amounts to apply to the unit price. */ @@ -5567,6 +5491,8 @@ export namespace content_v2_1 { /** * content.accountstatuses.custombatch + * @desc Retrieves multiple Merchant Center account statuses in a single + * request. * @alias content.accountstatuses.custombatch * @memberOf! () * @@ -8314,425 +8240,6 @@ export namespace content_v2_1 { } - export class Resource$Orderpayments { - constructor() {} - - - /** - * content.orderpayments.notifyauthapproved - * @desc Notify about successfully authorizing user's payment method for a - * given amount. - * @alias content.orderpayments.notifyauthapproved - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.merchantId The ID of the account that manages the order. This cannot be a multi-client account. - * @param {string} params.orderId The ID of the order for for which payment authorization is happening. - * @param {().OrderpaymentsNotifyAuthApprovedRequest} 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 - */ - notifyauthapproved( - params?: Params$Resource$Orderpayments$Notifyauthapproved, - options?: MethodOptions): - GaxiosPromise; - notifyauthapproved( - params: Params$Resource$Orderpayments$Notifyauthapproved, - options: MethodOptions| - BodyResponseCallback, - callback: BodyResponseCallback< - Schema$OrderpaymentsNotifyAuthApprovedResponse>): void; - notifyauthapproved( - params: Params$Resource$Orderpayments$Notifyauthapproved, - callback: BodyResponseCallback< - Schema$OrderpaymentsNotifyAuthApprovedResponse>): void; - notifyauthapproved(callback: BodyResponseCallback< - Schema$OrderpaymentsNotifyAuthApprovedResponse>): void; - notifyauthapproved( - paramsOrCallback?: Params$Resource$Orderpayments$Notifyauthapproved| - BodyResponseCallback, - optionsOrCallback?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback< - Schema$OrderpaymentsNotifyAuthApprovedResponse>): - void|GaxiosPromise { - let params = (paramsOrCallback || {}) as - Params$Resource$Orderpayments$Notifyauthapproved; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Orderpayments$Notifyauthapproved; - 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.1/{merchantId}/orderpayments/{orderId}/notifyAuthApproved') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: ['merchantId', 'orderId'], - pathParams: ['merchantId', 'orderId'], - context - }; - if (callback) { - createAPIRequest( - parameters, callback); - } else { - return createAPIRequest( - parameters); - } - } - - - /** - * content.orderpayments.notifyauthdeclined - * @desc Notify about failure to authorize user's payment method. - * @alias content.orderpayments.notifyauthdeclined - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.merchantId The ID of the account that manages the order. This cannot be a multi-client account. - * @param {string} params.orderId The ID of the order for which payment authorization was declined. - * @param {().OrderpaymentsNotifyAuthDeclinedRequest} 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 - */ - notifyauthdeclined( - params?: Params$Resource$Orderpayments$Notifyauthdeclined, - options?: MethodOptions): - GaxiosPromise; - notifyauthdeclined( - params: Params$Resource$Orderpayments$Notifyauthdeclined, - options: MethodOptions| - BodyResponseCallback, - callback: BodyResponseCallback< - Schema$OrderpaymentsNotifyAuthDeclinedResponse>): void; - notifyauthdeclined( - params: Params$Resource$Orderpayments$Notifyauthdeclined, - callback: BodyResponseCallback< - Schema$OrderpaymentsNotifyAuthDeclinedResponse>): void; - notifyauthdeclined(callback: BodyResponseCallback< - Schema$OrderpaymentsNotifyAuthDeclinedResponse>): void; - notifyauthdeclined( - paramsOrCallback?: Params$Resource$Orderpayments$Notifyauthdeclined| - BodyResponseCallback, - optionsOrCallback?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback< - Schema$OrderpaymentsNotifyAuthDeclinedResponse>): - void|GaxiosPromise { - let params = (paramsOrCallback || {}) as - Params$Resource$Orderpayments$Notifyauthdeclined; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Orderpayments$Notifyauthdeclined; - 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.1/{merchantId}/orderpayments/{orderId}/notifyAuthDeclined') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: ['merchantId', 'orderId'], - pathParams: ['merchantId', 'orderId'], - context - }; - if (callback) { - createAPIRequest( - parameters, callback); - } else { - return createAPIRequest( - parameters); - } - } - - - /** - * content.orderpayments.notifycharge - * @desc Notify about charge on user's selected payments method. - * @alias content.orderpayments.notifycharge - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.merchantId The ID of the account that manages the order. This cannot be a multi-client account. - * @param {string} params.orderId The ID of the order for which charge is happening. - * @param {().OrderpaymentsNotifyChargeRequest} 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 - */ - notifycharge( - params?: Params$Resource$Orderpayments$Notifycharge, - options?: MethodOptions): - GaxiosPromise; - notifycharge( - params: Params$Resource$Orderpayments$Notifycharge, - options: MethodOptions| - BodyResponseCallback, - callback: - BodyResponseCallback): - void; - notifycharge( - params: Params$Resource$Orderpayments$Notifycharge, - callback: - BodyResponseCallback): - void; - notifycharge( - callback: - BodyResponseCallback): - void; - notifycharge( - paramsOrCallback?: Params$Resource$Orderpayments$Notifycharge| - BodyResponseCallback, - optionsOrCallback?: MethodOptions| - BodyResponseCallback, - callback?: - BodyResponseCallback): - void|GaxiosPromise { - let params = (paramsOrCallback || {}) as - Params$Resource$Orderpayments$Notifycharge; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Orderpayments$Notifycharge; - 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.1/{merchantId}/orderpayments/{orderId}/notifyCharge') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: ['merchantId', 'orderId'], - pathParams: ['merchantId', 'orderId'], - context - }; - if (callback) { - createAPIRequest( - parameters, callback); - } else { - return createAPIRequest( - parameters); - } - } - - - /** - * content.orderpayments.notifyrefund - * @desc Notify about refund on user's selected payments method. - * @alias content.orderpayments.notifyrefund - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.merchantId The ID of the account that manages the order. This cannot be a multi-client account. - * @param {string} params.orderId The ID of the order for which charge is happening. - * @param {().OrderpaymentsNotifyRefundRequest} 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 - */ - notifyrefund( - params?: Params$Resource$Orderpayments$Notifyrefund, - options?: MethodOptions): - GaxiosPromise; - notifyrefund( - params: Params$Resource$Orderpayments$Notifyrefund, - options: MethodOptions| - BodyResponseCallback, - callback: - BodyResponseCallback): - void; - notifyrefund( - params: Params$Resource$Orderpayments$Notifyrefund, - callback: - BodyResponseCallback): - void; - notifyrefund( - callback: - BodyResponseCallback): - void; - notifyrefund( - paramsOrCallback?: Params$Resource$Orderpayments$Notifyrefund| - BodyResponseCallback, - optionsOrCallback?: MethodOptions| - BodyResponseCallback, - callback?: - BodyResponseCallback): - void|GaxiosPromise { - let params = (paramsOrCallback || {}) as - Params$Resource$Orderpayments$Notifyrefund; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Orderpayments$Notifyrefund; - 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.1/{merchantId}/orderpayments/{orderId}/notifyRefund') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: ['merchantId', 'orderId'], - pathParams: ['merchantId', 'orderId'], - context - }; - if (callback) { - createAPIRequest( - parameters, callback); - } else { - return createAPIRequest( - parameters); - } - } - } - - export interface Params$Resource$Orderpayments$Notifyauthapproved extends - StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; - - /** - * The ID of the account that manages the order. This cannot be a - * multi-client account. - */ - merchantId?: string; - /** - * The ID of the order for for which payment authorization is happening. - */ - orderId?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$OrderpaymentsNotifyAuthApprovedRequest; - } - export interface Params$Resource$Orderpayments$Notifyauthdeclined extends - StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; - - /** - * The ID of the account that manages the order. This cannot be a - * multi-client account. - */ - merchantId?: string; - /** - * The ID of the order for which payment authorization was declined. - */ - orderId?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$OrderpaymentsNotifyAuthDeclinedRequest; - } - export interface Params$Resource$Orderpayments$Notifycharge extends - StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; - - /** - * The ID of the account that manages the order. This cannot be a - * multi-client account. - */ - merchantId?: string; - /** - * The ID of the order for which charge is happening. - */ - orderId?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$OrderpaymentsNotifyChargeRequest; - } - export interface Params$Resource$Orderpayments$Notifyrefund extends - StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; - - /** - * The ID of the account that manages the order. This cannot be a - * multi-client account. - */ - merchantId?: string; - /** - * The ID of the order for which charge is happening. - */ - orderId?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$OrderpaymentsNotifyRefundRequest; - } - - export class Resource$Orderreports { constructor() {} diff --git a/src/apis/content/v2.ts b/src/apis/content/v2.ts index 8efc7802525..d35e2b35d9f 100644 --- a/src/apis/content/v2.ts +++ b/src/apis/content/v2.ts @@ -2243,8 +2243,9 @@ export namespace content_v2 { */ placedDate?: string; /** - * Deprecated. The details of the merchant provided promotions applied to - * the order. More details about the program are here. + * Deprecated. Ignored if provided for createTestOrder. The details of the + * merchant provided promotions applied to the order. More details about the + * program are here. */ promotions?: Schema$OrderLegacyPromotion[]; /** @@ -2781,7 +2782,13 @@ export namespace content_v2 { type?: string; } export interface Schema$OrderpaymentsNotifyAuthApprovedRequest { + /** + * Authorized amount for pre-tax charge on user's credit card. + */ authAmountPretax?: Schema$Price; + /** + * Authorized amount for tax charge on user's credit card. + */ authAmountTax?: Schema$Price; } export interface Schema$OrderpaymentsNotifyAuthApprovedResponse { @@ -5660,7 +5667,9 @@ export namespace content_v2 { */ shippingDetails?: Schema$OrderLineItemShippingDetails; /** - * Unit tax for the line item. + * Deprecated. Ignored if provided. Tax is automatically calculated for MFL + * orders. For non-MFL orders, tax settings from Merchant Center are + * applied. */ unitTax?: Schema$Price; } @@ -5702,7 +5711,9 @@ export namespace content_v2 { */ offerId?: string; /** - * The price for the product. + * The price for the product. Tax is automatically calculated for MFL + * orders. For non-MFL orders, tax settings from Merchant Center are + * applied. */ price?: Schema$Price; /** @@ -6735,6 +6746,8 @@ export namespace content_v2 { /** * content.accountstatuses.custombatch + * @desc Retrieves multiple Merchant Center account statuses in a single + * request. * @alias content.accountstatuses.custombatch * @memberOf! () * diff --git a/src/apis/file/index.ts b/src/apis/file/index.ts index 7adc329cae9..9fad2db1a7e 100644 --- a/src/apis/file/index.ts +++ b/src/apis/file/index.ts @@ -14,17 +14,21 @@ /*! THIS FILE IS AUTO-GENERATED */ import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; +import {file_v1} from './v1'; import {file_v1beta1} from './v1beta1'; export const VERSIONS = { + 'v1': file_v1.File, 'v1beta1': file_v1beta1.File, }; +export function file(version: 'v1'): file_v1.File; +export function file(options: file_v1.Options): file_v1.File; export function file(version: 'v1beta1'): file_v1beta1.File; export function file(options: file_v1beta1.Options): file_v1beta1.File; -export function file( +export function file( this: GoogleConfigurable, - versionOrOptions: 'v1beta1'|file_v1beta1.Options) { + versionOrOptions: 'v1'|file_v1.Options|'v1beta1'|file_v1beta1.Options) { return getAPI('file', versionOrOptions, VERSIONS, this); } diff --git a/src/apis/file/v1.ts b/src/apis/file/v1.ts new file mode 100644 index 00000000000..768b8b43934 --- /dev/null +++ b/src/apis/file/v1.ts @@ -0,0 +1,1418 @@ +/** + * Copyright 2019 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. + */ + +import {GaxiosPromise} from 'gaxios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; +import {APIRequestContext, BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from 'googleapis-common'; + +// tslint:disable: no-any +// tslint:disable: class-name +// tslint:disable: variable-name +// tslint:disable: jsdoc-format +// tslint:disable: no-namespace + +export namespace file_v1 { + export interface Options extends GlobalOptions { + version: 'v1'; + } + + let context: APIRequestContext; + + interface StandardParameters { + /** + * V1 error format. + */ + '$.xgafv'?: string; + /** + * OAuth access token. + */ + access_token?: string; + /** + * Data format for response. + */ + alt?: string; + /** + * JSONP + */ + callback?: string; + /** + * Selector specifying which fields to include in a partial response. + */ + fields?: string; + /** + * API key. Your API key identifies your project and provides you with API + * access, quota, and reports. Required unless you provide an OAuth 2.0 + * token. + */ + key?: string; + /** + * OAuth 2.0 token for the current user. + */ + oauth_token?: string; + /** + * Returns response with indentations and line breaks. + */ + prettyPrint?: boolean; + /** + * Available to use for quota purposes for server-side applications. Can be + * any arbitrary string assigned to a user, but should not exceed 40 + * characters. + */ + quotaUser?: string; + /** + * Legacy upload protocol for media (e.g. "media", "multipart"). + */ + uploadType?: string; + /** + * Upload protocol for media (e.g. "raw", "multipart"). + */ + upload_protocol?: string; + } + + /** + * Cloud Filestore API + * + * The Cloud Filestore API is used for creating and managing cloud file + * servers. + * + * @example + * const {google} = require('googleapis'); + * const file = google.file('v1'); + * + * @namespace file + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for File + */ + export class File { + projects: Resource$Projects; + + constructor(options: GlobalOptions, google?: GoogleConfigurable) { + context = {_options: options || {}, google}; + + this.projects = new Resource$Projects(); + } + } + + /** + * The request message for Operations.CancelOperation. + */ + export interface Schema$CancelOperationRequest {} + /** + * 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 {} + /** + * File share configuration for the instance. + */ + export interface Schema$FileShareConfig { + /** + * File share capacity in gigabytes (GB). Cloud Filestore defines 1 GB as + * 1024^3 bytes. + */ + capacityGb?: string; + /** + * The name of the file share (must be 16 characters or less). + */ + name?: string; + } + /** + * A Cloud Filestore instance. + */ + export interface Schema$Instance { + /** + * Output only. The time when the instance was created. + */ + createTime?: string; + /** + * Optional. A description of the instance (2048 characters or less). + */ + description?: string; + /** + * Server-specified ETag for the instance resource to prevent simultaneous + * updates from overwriting each other. + */ + etag?: string; + /** + * File system shares on the instance. For this version, only a single file + * share is supported. + */ + fileShares?: Schema$FileShareConfig[]; + /** + * Resource labels to represent user provided metadata. + */ + labels?: {[key: string]: string;}; + /** + * Output only. The resource name of the instance, in the format + * projects/{project_id}/locations/{location_id}/instances/{instance_id}. + */ + name?: string; + /** + * VPC networks to which the instance is connected. For this version, only a + * single network is supported. + */ + networks?: Schema$NetworkConfig[]; + /** + * Output only. The instance state. + */ + state?: string; + /** + * Output only. Additional information about the instance state, if + * available. + */ + statusMessage?: string; + /** + * The service tier of the instance. + */ + tier?: string; + } + /** + * ListInstancesResponse is the result of ListInstancesRequest. + */ + export interface Schema$ListInstancesResponse { + /** + * A list of instances in the project for the specified location. If the + * {location} value in the request is "-", the response contains a + * list of instances from all locations. If any location is unreachable, the + * response will only return instances in reachable locations and the + * "unreachable" field will be populated with a list of + * unreachable locations. + */ + instances?: Schema$Instance[]; + /** + * The token you can use to retrieve the next page of results. Not returned + * if there are no more results in the list. + */ + nextPageToken?: string; + /** + * Locations that could not be reached. + */ + unreachable?: string[]; + } + /** + * The response message for Locations.ListLocations. + */ + export interface Schema$ListLocationsResponse { + /** + * A list of locations that matches the specified filter in the request. + */ + locations?: Schema$Location[]; + /** + * The standard List next-page token. + */ + nextPageToken?: string; + } + /** + * The response message for Operations.ListOperations. + */ + export interface Schema$ListOperationsResponse { + /** + * The standard List next-page token. + */ + nextPageToken?: string; + /** + * A list of operations that matches the specified filter in the request. + */ + operations?: Schema$Operation[]; + } + /** + * A resource that represents Google Cloud Platform location. + */ + export interface Schema$Location { + /** + * The friendly name for this location, typically a nearby city name. For + * example, "Tokyo". + */ + displayName?: string; + /** + * Cross-service attributes for the location. For example + * {"cloud.googleapis.com/region": "us-east1"} + */ + labels?: {[key: string]: string;}; + /** + * The canonical id for this location. For example: `"us-east1"`. + */ + locationId?: string; + /** + * Service-specific metadata. For example the available capacity at the + * given location. + */ + metadata?: {[key: string]: any;}; + /** + * Resource name for the location, which may vary between implementations. + * For example: `"projects/example-project/locations/us-east1"` + */ + name?: string; + } + /** + * Network configuration for the instance. + */ + export interface Schema$NetworkConfig { + /** + * Output only. IPv4 addresses in the format {octet 1}.{octet 2}.{octet + * 3}.{octet 4} or IPv6 addresses in the format {block 1}:{block 2}:{block + * 3}:{block 4}:{block 5}:{block 6}:{block 7}:{block 8}. + */ + ipAddresses?: string[]; + /** + * Internet protocol versions for which the instance has IP addresses + * assigned. For this version, only MODE_IPV4 is supported. + */ + modes?: string[]; + /** + * The name of the Google Compute Engine [VPC + * network](/compute/docs/networks-and-firewalls#networks) to which the + * instance is connected. + */ + network?: string; + /** + * A /29 CIDR block in one of the [internal IP address + * ranges](https://www.arin.net/knowledge/address_filters.html) that + * identifies the range of IP addresses reserved for this instance. For + * example, 10.0.0.0/29 or 192.168.0.0/29. The range you specify can't + * overlap with either existing subnets or assigned IP address ranges for + * other Cloud Filestore instances in the selected VPC network. + */ + reservedIpRange?: string; + } + /** + * This resource represents a long-running operation that is the result of a + * network API call. + */ + export interface Schema$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$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?: {[key: string]: 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?: {[key: string]: any;}; + } + /** + * Represents the metadata of the long-running operation. + */ + export interface Schema$OperationMetadata { + /** + * [Output only] API version used to start the operation. + */ + apiVersion?: string; + /** + * [Output only] Identifies whether the user has requested cancellation of + * the operation. Operations that have successfully been cancelled have + * Operation.error value with a google.rpc.Status.code of 1, corresponding + * to `Code.CANCELLED`. + */ + cancelRequested?: boolean; + /** + * [Output only] The time the operation was created. + */ + createTime?: string; + /** + * [Output only] The time the operation finished running. + */ + endTime?: string; + /** + * [Output only] Human-readable status of the operation, if any. + */ + statusDetail?: string; + /** + * [Output only] Server-defined resource path for the target of the + * operation. + */ + target?: string; + /** + * [Output only] Name of the verb executed by the operation. + */ + verb?: string; + } + /** + * 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$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?: Array<{[key: string]: 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$Projects { + locations: Resource$Projects$Locations; + constructor() { + this.locations = new Resource$Projects$Locations(); + } + } + + + export class Resource$Projects$Locations { + instances: Resource$Projects$Locations$Instances; + operations: Resource$Projects$Locations$Operations; + constructor() { + this.instances = new Resource$Projects$Locations$Instances(); + this.operations = new Resource$Projects$Locations$Operations(); + } + + + /** + * file.projects.locations.get + * @desc Gets information about a location. + * @alias file.projects.locations.get + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.name Resource name for the location. + * @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$Get, + options?: MethodOptions): GaxiosPromise; + get(params: Params$Resource$Projects$Locations$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Locations$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Locations$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, + callback?: BodyResponseCallback): + void|GaxiosPromise { + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Locations$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Get; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET' + }, + options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + + /** + * file.projects.locations.list + * @desc Lists information about the supported locations for this service. + * @alias file.projects.locations.list + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string=} params.filter The standard list filter. + * @param {string} params.name The resource that owns the locations collection, if applicable. + * @param {integer=} params.pageSize The standard list page size. + * @param {string=} params.pageToken The standard list page token. + * @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$List, + options?: MethodOptions): GaxiosPromise; + list( + params: Params$Resource$Projects$Locations$List, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Projects$Locations$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Projects$Locations$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|GaxiosPromise { + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Locations$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$List; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1/{+name}/locations') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'GET' + }, + options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + } + + export interface Params$Resource$Projects$Locations$Get extends + StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Resource name for the location. + */ + name?: string; + } + export interface Params$Resource$Projects$Locations$List extends + StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The standard list filter. + */ + filter?: string; + /** + * The resource that owns the locations collection, if applicable. + */ + name?: string; + /** + * The standard list page size. + */ + pageSize?: number; + /** + * The standard list page token. + */ + pageToken?: string; + } + + export class Resource$Projects$Locations$Instances { + constructor() {} + + + /** + * file.projects.locations.instances.create + * @desc Creates an instance. + * @alias file.projects.locations.instances.create + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string=} params.instanceId The name of the instance to create. The name must be unique for the specified project and location. + * @param {string} params.parent The instance's project and location, in the format projects/{project_id}/locations/{location}. In Cloud Filestore, locations map to GCP zones, for example **us-west1-b**. + * @param {().Instance} 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 + */ + create( + params?: Params$Resource$Projects$Locations$Instances$Create, + options?: MethodOptions): GaxiosPromise; + create( + params: Params$Resource$Projects$Locations$Instances$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + create( + params: Params$Resource$Projects$Locations$Instances$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: Params$Resource$Projects$Locations$Instances$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|GaxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Instances$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Instances$Create; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1/{+parent}/instances') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'POST' + }, + options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + + /** + * file.projects.locations.instances.delete + * @desc Deletes an instance. + * @alias file.projects.locations.instances.delete + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.name The instance resource name, in the format projects/{project_id}/locations/{location}/instances/{instance_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$Instances$Delete, + options?: MethodOptions): GaxiosPromise; + delete( + params: Params$Resource$Projects$Locations$Instances$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Projects$Locations$Instances$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Projects$Locations$Instances$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|GaxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Instances$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Instances$Delete; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE' + }, + options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + + /** + * file.projects.locations.instances.get + * @desc Gets the details of a specific instance. + * @alias file.projects.locations.instances.get + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.name The instance resource name, in the format projects/{project_id}/locations/{location}/instances/{instance_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$Instances$Get, + options?: MethodOptions): GaxiosPromise; + get(params: Params$Resource$Projects$Locations$Instances$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Locations$Instances$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Locations$Instances$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, + callback?: BodyResponseCallback): + void|GaxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Instances$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Instances$Get; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET' + }, + options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + + /** + * file.projects.locations.instances.list + * @desc Lists all instances in a project for either a specified location or + * for all locations. + * @alias file.projects.locations.instances.list + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string=} params.filter List filter. + * @param {string=} params.orderBy Sort results. Supported values are "name", "name desc" or "" (unsorted). + * @param {integer=} params.pageSize The maximum number of items to return. + * @param {string=} params.pageToken The next_page_token value to use if there are additional results to retrieve for this list request. + * @param {string} params.parent The project and location for which to retrieve instance information, in the format projects/{project_id}/locations/{location}. In Cloud Filestore, locations map to GCP zones, for example **us-west1-b**. To retrieve instance information for all locations, use "-" for the {location} value. + * @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$Instances$List, + options?: MethodOptions): GaxiosPromise; + list( + params: Params$Resource$Projects$Locations$Instances$List, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Projects$Locations$Instances$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Projects$Locations$Instances$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|GaxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Instances$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Instances$List; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1/{+parent}/instances') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'GET' + }, + options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + + /** + * file.projects.locations.instances.patch + * @desc Updates the settings of a specific instance. + * @alias file.projects.locations.instances.patch + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.name Output only. The resource name of the instance, in the format projects/{project_id}/locations/{location_id}/instances/{instance_id}. + * @param {string=} params.updateMask Mask of fields to update. At least one path must be supplied in this field. The elements of the repeated paths field may only include these fields: "description" + * @param {().Instance} 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$Instances$Patch, + options?: MethodOptions): GaxiosPromise; + patch( + params: Params$Resource$Projects$Locations$Instances$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Projects$Locations$Instances$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Projects$Locations$Instances$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|GaxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Instances$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Instances$Patch; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH' + }, + options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + } + + export interface Params$Resource$Projects$Locations$Instances$Create extends + StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the instance to create. The name must be unique for the + * specified project and location. + */ + instanceId?: string; + /** + * The instance's project and location, in the format + * projects/{project_id}/locations/{location}. In Cloud Filestore, locations + * map to GCP zones, for example **us-west1-b**. + */ + parent?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$Instance; + } + export interface Params$Resource$Projects$Locations$Instances$Delete extends + StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The instance resource name, in the format + * projects/{project_id}/locations/{location}/instances/{instance_id} + */ + name?: string; + } + export interface Params$Resource$Projects$Locations$Instances$Get extends + StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The instance resource name, in the format + * projects/{project_id}/locations/{location}/instances/{instance_id}. + */ + name?: string; + } + export interface Params$Resource$Projects$Locations$Instances$List extends + StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * List filter. + */ + filter?: string; + /** + * Sort results. Supported values are "name", "name desc" or "" (unsorted). + */ + orderBy?: string; + /** + * The maximum number of items to return. + */ + pageSize?: number; + /** + * The next_page_token value to use if there are additional results to + * retrieve for this list request. + */ + pageToken?: string; + /** + * The project and location for which to retrieve instance information, in + * the format projects/{project_id}/locations/{location}. In Cloud + * Filestore, locations map to GCP zones, for example **us-west1-b**. To + * retrieve instance information for all locations, use "-" for the + * {location} value. + */ + parent?: string; + } + export interface Params$Resource$Projects$Locations$Instances$Patch extends + StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Output only. The resource name of the instance, in the format + * projects/{project_id}/locations/{location_id}/instances/{instance_id}. + */ + name?: string; + /** + * Mask of fields to update. At least one path must be supplied in this + * field. The elements of the repeated paths field may only include these + * fields: "description" + */ + updateMask?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$Instance; + } + + + export class Resource$Projects$Locations$Operations { + constructor() {} + + + /** + * file.projects.locations.operations.cancel + * @desc Starts asynchronous cancellation on a long-running operation. The + * server makes a best effort to cancel the operation, but success is not + * guaranteed. If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation + * or other methods to check whether the cancellation succeeded or whether + * the operation completed despite cancellation. On successful cancellation, + * the operation is not deleted; instead, it becomes an operation with an + * Operation.error value with a google.rpc.Status.code of 1, corresponding + * to `Code.CANCELLED`. + * @alias file.projects.locations.operations.cancel + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.name The name of the operation resource to be cancelled. + * @param {().CancelOperationRequest} 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 + */ + cancel( + params?: Params$Resource$Projects$Locations$Operations$Cancel, + options?: MethodOptions): GaxiosPromise; + cancel( + params: Params$Resource$Projects$Locations$Operations$Cancel, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + cancel( + params: Params$Resource$Projects$Locations$Operations$Cancel, + callback: BodyResponseCallback): void; + cancel(callback: BodyResponseCallback): void; + cancel( + paramsOrCallback?: Params$Resource$Projects$Locations$Operations$Cancel| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, + callback?: BodyResponseCallback): + void|GaxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Operations$Cancel; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Operations$Cancel; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1/{+name}:cancel') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'POST' + }, + options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + + /** + * file.projects.locations.operations.delete + * @desc Deletes a long-running operation. This method indicates that the + * client is no longer interested in the operation result. It does not + * cancel the operation. If the server doesn't support this method, it + * returns `google.rpc.Code.UNIMPLEMENTED`. + * @alias file.projects.locations.operations.delete + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.name The name of the operation resource to be deleted. + * @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$Operations$Delete, + options?: MethodOptions): GaxiosPromise; + delete( + params: Params$Resource$Projects$Locations$Operations$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Projects$Locations$Operations$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Projects$Locations$Operations$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, + callback?: BodyResponseCallback): + void|GaxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Operations$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Operations$Delete; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE' + }, + options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + + /** + * file.projects.locations.operations.get + * @desc Gets the latest state of a long-running operation. Clients can use + * this method to poll the operation result at intervals as recommended by + * the API service. + * @alias file.projects.locations.operations.get + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.name The name of the operation resource. + * @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$Operations$Get, + options?: MethodOptions): GaxiosPromise; + get(params: Params$Resource$Projects$Locations$Operations$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Locations$Operations$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Locations$Operations$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|GaxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Operations$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Operations$Get; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET' + }, + options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + + /** + * file.projects.locations.operations.list + * @desc Lists operations that match the specified filter in the request. If + * the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: + * the `name` binding allows API services to override the binding to use + * different resource name schemes, such as `users/x/operations`. To + * override the binding, API services can add a binding such as + * `"/v1/{name=users/x}/operations"` to their service configuration. For + * backwards compatibility, the default name includes the operations + * collection id, however overriding users must ensure the name binding is + * the parent resource, without the operations collection id. + * @alias file.projects.locations.operations.list + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string=} params.filter The standard list filter. + * @param {string} params.name The name of the operation's parent resource. + * @param {integer=} params.pageSize The standard list page size. + * @param {string=} params.pageToken The standard list page token. + * @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$Operations$List, + options?: MethodOptions): GaxiosPromise; + list( + params: Params$Resource$Projects$Locations$Operations$List, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Projects$Locations$Operations$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Projects$Locations$Operations$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|GaxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Operations$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Operations$List; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1/{+name}/operations') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'GET' + }, + options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + } + + export interface Params$Resource$Projects$Locations$Operations$Cancel extends + StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the operation resource to be cancelled. + */ + name?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$CancelOperationRequest; + } + export interface Params$Resource$Projects$Locations$Operations$Delete extends + StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the operation resource to be deleted. + */ + name?: string; + } + export interface Params$Resource$Projects$Locations$Operations$Get extends + StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the operation resource. + */ + name?: string; + } + export interface Params$Resource$Projects$Locations$Operations$List extends + StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The standard list filter. + */ + filter?: string; + /** + * The name of the operation's parent resource. + */ + name?: string; + /** + * The standard list page size. + */ + pageSize?: number; + /** + * The standard list page token. + */ + pageToken?: string; + } +} diff --git a/src/apis/gmail/v1.ts b/src/apis/gmail/v1.ts index 697aa7a4b57..7ebc3093577 100644 --- a/src/apis/gmail/v1.ts +++ b/src/apis/gmail/v1.ts @@ -485,7 +485,9 @@ export namespace gmail_v1 { } export interface Schema$ListMessagesResponse { /** - * List of messages. + * List of messages. Note that each message resource contains only an id and + * a threadId. Additional message details can be fetched using the + * messages.get method. */ messages?: Schema$Message[]; /** @@ -522,7 +524,9 @@ export namespace gmail_v1 { */ resultSizeEstimate?: number; /** - * List of threads. + * List of threads. Note that each thread resource does not contain a list + * of messages. The list of messages for a given thread can be fetched using + * the threads.get method. */ threads?: Schema$Thread[]; } diff --git a/src/apis/logging/v2.ts b/src/apis/logging/v2.ts index e3468714f33..de787d67449 100644 --- a/src/apis/logging/v2.ts +++ b/src/apis/logging/v2.ts @@ -506,8 +506,8 @@ export namespace logging_v2 { * "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" * "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]" * "folders/[FOLDER_ID]/logs/[LOG_ID]" A project number may - * optionally be used in place of PROJECT_ID. The project number is - * translated to its corresponding PROJECT_ID internally and the log_name + * optionally be used in place of PROJECT_ID. The project number is + * translated to its corresponding PROJECT_ID internally and the log_name * field will contain PROJECT_ID in queries and exports.[LOG_ID] must be * URL-encoded within log_name. Example: * "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity". @@ -521,7 +521,7 @@ export namespace logging_v2 { */ logName?: string; /** - * Output only. Additional metadata about the monitored resource. Only + * Output only. Additional metadata about the monitored resource.Only * k8s_container, k8s_pod, and k8s_node MonitoredResources have this field * populated. */ @@ -541,10 +541,10 @@ export namespace logging_v2 { */ receiveTimestamp?: string; /** - * Required. The primary monitored resource associated with this log entry. - * Example: a log entry that reports a database error would be associated - * with the monitored resource designating the particular database that - * reported the error. + * Required. The primary monitored resource associated with this log + * entry.Example: a log entry that reports a database error would be + * associated with the monitored resource designating the particular + * database that reported the error. */ resource?: Schema$MonitoredResource; /** @@ -558,7 +558,7 @@ export namespace logging_v2 { */ sourceLocation?: Schema$LogEntrySourceLocation; /** - * Optional. The span ID within the trace associated with the log entry. For + * Optional. The span ID within the trace associated with the log entry.For * Trace spans, this is the same format that the Trace API v2 uses: a * 16-character hexadecimal encoding of an 8-byte array, such as * <code>"000000000000004a"</code>. @@ -590,7 +590,7 @@ export namespace logging_v2 { trace?: string; /** * Optional. The sampling decision of the trace associated with the log - * entry. True means that the trace resource name in the trace field was + * entry.True means that the trace resource name in the trace field was * sampled for storage in a trace backend. False means that the trace was * not sampled for storage when this log entry was written, or the sampling * decision was unknown at the time. A non-sampled trace value is still @@ -659,13 +659,18 @@ export namespace logging_v2 { * log entries and log entries from Amazon Web Services are never excluded. */ export interface Schema$LogExclusion { + /** + * Output only. The creation timestamp of the exclusion.This field may not + * be present for older exclusions. + */ + createTime?: string; /** * Optional. A description of this exclusion. */ description?: string; /** * Optional. If set to True, then this exclusion is disabled and it does not - * exclude any log entries. You can use exclusions.patch to change the value + * exclude any log entries. You can update an exclusion to change the value * of this field. */ disabled?: boolean; @@ -685,6 +690,11 @@ export namespace logging_v2 { * and periods. */ name?: string; + /** + * Output only. The last update timestamp of the exclusion.This field may + * not be present for older exclusions. + */ + updateTime?: string; } /** * Application log line emitted while processing a request. @@ -722,6 +732,11 @@ export namespace logging_v2 { * used to create a histogram of the extracted values. */ bucketOptions?: Schema$BucketOptions; + /** + * Output only. The creation timestamp of the metric.This field may not be + * present for older metrics. + */ + createTime?: string; /** * Optional. A description of this metric, which is used in documentation. * The maximum length of the description is 8000 characters. @@ -779,6 +794,11 @@ export namespace logging_v2 { * "projects/my-project/metrics/nginx%2Frequests". */ name?: string; + /** + * Output only. The last update timestamp of the metric.This field may not + * be present for older metrics. + */ + updateTime?: string; /** * Optional. A value_extractor is required when using a distribution * logs-based metric to extract the values to record from a log entry. Two @@ -811,6 +831,11 @@ export namespace logging_v2 { * account, or folder. */ export interface Schema$LogSink { + /** + * Output only. The creation timestamp of the sink.This field may not be + * present for older sinks. + */ + createTime?: string; /** * Required. The export destination: * "storage.googleapis.com/[GCS_BUCKET]" @@ -818,7 +843,7 @@ export namespace logging_v2 { * "pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]" * The sink's writer_identity, set when the sink is created, must have * permission to write to the destination or else the log entries are not - * exported. For more information, see Exporting Logs With Sinks. + * exported. For more information, see Exporting Logs with Sinks. */ destination?: string; /** @@ -857,14 +882,19 @@ export namespace logging_v2 { * entries. The v2 format is used by default and cannot be changed. */ outputVersionFormat?: string; + /** + * Output only. The last update timestamp of the sink.This field may not be + * present for older sinks. + */ + updateTime?: string; /** * Output only. An IAM identity&mdash;a service account or * group&mdash;under which Logging writes the exported log entries to * the sink's destination. This field is set by sinks.create and - * sinks.update, based on the setting of unique_writer_identity in those + * sinks.update based on the value of unique_writer_identity in those * methods.Until you grant this identity write-access to the destination, * log entry exports from this sink will fail. For more information, see - * Granting access for a resource. Consult the destination service's + * Granting Access for a Resource. Consult the destination service's * documentation to determine the appropriate IAM roles to assign to the * identity. */ @@ -2269,7 +2299,7 @@ export namespace logging_v2 { /** * logging.billingAccounts.sinks.patch * @desc Updates a sink. This method replaces the following fields in the - * existing sink with values from the new sink: destination, and filter. The + * existing sink with values from the new sink: destination, and filter.The * updated sink might also have a new writer_identity; see the * unique_writer_identity field. * @alias logging.billingAccounts.sinks.patch @@ -2340,7 +2370,7 @@ export namespace logging_v2 { /** * logging.billingAccounts.sinks.update * @desc Updates a sink. This method replaces the following fields in the - * existing sink with values from the new sink: destination, and filter. The + * existing sink with values from the new sink: destination, and filter.The * updated sink might also have a new writer_identity; see the * unique_writer_identity field. * @alias logging.billingAccounts.sinks.update @@ -4137,7 +4167,7 @@ export namespace logging_v2 { /** * logging.folders.sinks.patch * @desc Updates a sink. This method replaces the following fields in the - * existing sink with values from the new sink: destination, and filter. The + * existing sink with values from the new sink: destination, and filter.The * updated sink might also have a new writer_identity; see the * unique_writer_identity field. * @alias logging.folders.sinks.patch @@ -4208,7 +4238,7 @@ export namespace logging_v2 { /** * logging.folders.sinks.update * @desc Updates a sink. This method replaces the following fields in the - * existing sink with values from the new sink: destination, and filter. The + * existing sink with values from the new sink: destination, and filter.The * updated sink might also have a new writer_identity; see the * unique_writer_identity field. * @alias logging.folders.sinks.update @@ -5682,7 +5712,7 @@ export namespace logging_v2 { /** * logging.organizations.sinks.patch * @desc Updates a sink. This method replaces the following fields in the - * existing sink with values from the new sink: destination, and filter. The + * existing sink with values from the new sink: destination, and filter.The * updated sink might also have a new writer_identity; see the * unique_writer_identity field. * @alias logging.organizations.sinks.patch @@ -5753,7 +5783,7 @@ export namespace logging_v2 { /** * logging.organizations.sinks.update * @desc Updates a sink. This method replaces the following fields in the - * existing sink with values from the new sink: destination, and filter. The + * existing sink with values from the new sink: destination, and filter.The * updated sink might also have a new writer_identity; see the * unique_writer_identity field. * @alias logging.organizations.sinks.update @@ -7373,7 +7403,7 @@ export namespace logging_v2 { /** * logging.projects.sinks.patch * @desc Updates a sink. This method replaces the following fields in the - * existing sink with values from the new sink: destination, and filter. The + * existing sink with values from the new sink: destination, and filter.The * updated sink might also have a new writer_identity; see the * unique_writer_identity field. * @alias logging.projects.sinks.patch @@ -7444,7 +7474,7 @@ export namespace logging_v2 { /** * logging.projects.sinks.update * @desc Updates a sink. This method replaces the following fields in the - * existing sink with values from the new sink: destination, and filter. The + * existing sink with values from the new sink: destination, and filter.The * updated sink might also have a new writer_identity; see the * unique_writer_identity field. * @alias logging.projects.sinks.update @@ -7971,7 +8001,7 @@ export namespace logging_v2 { /** * logging.sinks.update * @desc Updates a sink. This method replaces the following fields in the - * existing sink with values from the new sink: destination, and filter. The + * existing sink with values from the new sink: destination, and filter.The * updated sink might also have a new writer_identity; see the * unique_writer_identity field. * @alias logging.sinks.update diff --git a/src/apis/logging/v2beta1.ts b/src/apis/logging/v2beta1.ts index 260f9763d42..193fe50287a 100644 --- a/src/apis/logging/v2beta1.ts +++ b/src/apis/logging/v2beta1.ts @@ -462,8 +462,8 @@ export namespace logging_v2beta1 { * "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" * "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]" * "folders/[FOLDER_ID]/logs/[LOG_ID]" A project number may - * optionally be used in place of PROJECT_ID. The project number is - * translated to its corresponding PROJECT_ID internally and the log_name + * optionally be used in place of PROJECT_ID. The project number is + * translated to its corresponding PROJECT_ID internally and the log_name * field will contain PROJECT_ID in queries and exports.[LOG_ID] must be * URL-encoded within log_name. Example: * "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity". @@ -477,7 +477,7 @@ export namespace logging_v2beta1 { */ logName?: string; /** - * Output only. Additional metadata about the monitored resource. Only + * Output only. Additional metadata about the monitored resource.Only * k8s_container, k8s_pod, and k8s_node MonitoredResources have this field * populated. */ @@ -497,10 +497,10 @@ export namespace logging_v2beta1 { */ receiveTimestamp?: string; /** - * Required. The primary monitored resource associated with this log entry. - * Example: a log entry that reports a database error would be associated - * with the monitored resource designating the particular database that - * reported the error. + * Required. The primary monitored resource associated with this log + * entry.Example: a log entry that reports a database error would be + * associated with the monitored resource designating the particular + * database that reported the error. */ resource?: Schema$MonitoredResource; /** @@ -514,7 +514,7 @@ export namespace logging_v2beta1 { */ sourceLocation?: Schema$LogEntrySourceLocation; /** - * Optional. The span ID within the trace associated with the log entry. For + * Optional. The span ID within the trace associated with the log entry.For * Trace spans, this is the same format that the Trace API v2 uses: a * 16-character hexadecimal encoding of an 8-byte array, such as * <code>"000000000000004a"</code>. @@ -546,7 +546,7 @@ export namespace logging_v2beta1 { trace?: string; /** * Optional. The sampling decision of the trace associated with the log - * entry. True means that the trace resource name in the trace field was + * entry.True means that the trace resource name in the trace field was * sampled for storage in a trace backend. False means that the trace was * not sampled for storage when this log entry was written, or the sampling * decision was unknown at the time. A non-sampled trace value is still @@ -643,6 +643,11 @@ export namespace logging_v2beta1 { * used to create a histogram of the extracted values. */ bucketOptions?: Schema$BucketOptions; + /** + * Output only. The creation timestamp of the metric.This field may not be + * present for older metrics. + */ + createTime?: string; /** * Optional. A description of this metric, which is used in documentation. * The maximum length of the description is 8000 characters. @@ -700,6 +705,11 @@ export namespace logging_v2beta1 { * "projects/my-project/metrics/nginx%2Frequests". */ name?: string; + /** + * Output only. The last update timestamp of the metric.This field may not + * be present for older metrics. + */ + updateTime?: string; /** * Optional. A value_extractor is required when using a distribution * logs-based metric to extract the values to record from a log entry. Two @@ -732,6 +742,11 @@ export namespace logging_v2beta1 { * account, or folder. */ export interface Schema$LogSink { + /** + * Output only. The creation timestamp of the sink.This field may not be + * present for older sinks. + */ + createTime?: string; /** * Required. The export destination: * "storage.googleapis.com/[GCS_BUCKET]" @@ -739,7 +754,7 @@ export namespace logging_v2beta1 { * "pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]" * The sink's writer_identity, set when the sink is created, must have * permission to write to the destination or else the log entries are not - * exported. For more information, see Exporting Logs With Sinks. + * exported. For more information, see Exporting Logs with Sinks. */ destination?: string; /** @@ -778,14 +793,19 @@ export namespace logging_v2beta1 { * entries. The v2 format is used by default and cannot be changed. */ outputVersionFormat?: string; + /** + * Output only. The last update timestamp of the sink.This field may not be + * present for older sinks. + */ + updateTime?: string; /** * Output only. An IAM identity&mdash;a service account or * group&mdash;under which Logging writes the exported log entries to * the sink's destination. This field is set by sinks.create and - * sinks.update, based on the setting of unique_writer_identity in those + * sinks.update based on the value of unique_writer_identity in those * methods.Until you grant this identity write-access to the destination, * log entry exports from this sink will fail. For more information, see - * Granting access for a resource. Consult the destination service's + * Granting Access for a Resource. Consult the destination service's * documentation to determine the appropriate IAM roles to assign to the * identity. */ @@ -2984,7 +3004,7 @@ export namespace logging_v2beta1 { /** * logging.projects.sinks.update * @desc Updates a sink. This method replaces the following fields in the - * existing sink with values from the new sink: destination, and filter. The + * existing sink with values from the new sink: destination, and filter.The * updated sink might also have a new writer_identity; see the * unique_writer_identity field. * @example diff --git a/src/apis/ml/v1.ts b/src/apis/ml/v1.ts index e27c2ac474c..35f46a3f9ad 100644 --- a/src/apis/ml/v1.ts +++ b/src/apis/ml/v1.ts @@ -98,11 +98,13 @@ export namespace ml_v1 { * @param {object=} options Options for Ml */ export class Ml { + operations: Resource$Operations; projects: Resource$Projects; constructor(options: GlobalOptions, google?: GoogleConfigurable) { context = {_options: options || {}, google}; + this.operations = new Resource$Operations(); this.projects = new Resource$Projects(); } } @@ -1323,6 +1325,93 @@ export namespace ml_v1 { } + export class Resource$Operations { + constructor() {} + + + /** + * ml.operations.delete + * @desc Deletes a long-running operation. This method indicates that the + * client is no longer interested in the operation result. It does not + * cancel the operation. If the server doesn't support this method, it + * returns `google.rpc.Code.UNIMPLEMENTED`. + * @alias ml.operations.delete + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.name The name of the operation resource to be deleted. + * @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$Operations$Delete, options?: MethodOptions): + GaxiosPromise; + delete( + params: Params$Resource$Operations$Delete, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Operations$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Operations$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|GaxiosPromise { + let params = + (paramsOrCallback || {}) as Params$Resource$Operations$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Operations$Delete; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE' + }, + options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + } + + export interface Params$Resource$Operations$Delete extends + StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the operation resource to be deleted. + */ + name?: string; + } + + export class Resource$Projects { jobs: Resource$Projects$Jobs; locations: Resource$Projects$Locations; @@ -3856,76 +3945,6 @@ export namespace ml_v1 { } - /** - * ml.projects.operations.delete - * @desc Deletes a long-running operation. This method indicates that the - * client is no longer interested in the operation result. It does not - * cancel the operation. If the server doesn't support this method, it - * returns `google.rpc.Code.UNIMPLEMENTED`. - * @alias ml.projects.operations.delete - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.name The name of the operation resource to be deleted. - * @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$Operations$Delete, - options?: MethodOptions): GaxiosPromise; - delete( - params: Params$Resource$Projects$Operations$Delete, - options: MethodOptions| - BodyResponseCallback, - callback: BodyResponseCallback): void; - delete( - params: Params$Resource$Projects$Operations$Delete, - callback: BodyResponseCallback): void; - delete(callback: BodyResponseCallback): void; - delete( - paramsOrCallback?: Params$Resource$Projects$Operations$Delete| - BodyResponseCallback, - optionsOrCallback?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): - void|GaxiosPromise { - let params = (paramsOrCallback || {}) as - Params$Resource$Projects$Operations$Delete; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Operations$Delete; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE' - }, - options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - /** * ml.projects.operations.get * @desc Gets the latest state of a long-running operation. Clients can use @@ -4095,18 +4114,6 @@ export namespace ml_v1 { */ name?: string; } - export interface Params$Resource$Projects$Operations$Delete extends - StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; - - /** - * The name of the operation resource to be deleted. - */ - name?: string; - } export interface Params$Resource$Projects$Operations$Get extends StandardParameters { /** diff --git a/src/apis/monitoring/v3.ts b/src/apis/monitoring/v3.ts index 4f67eac3899..d9e63d40717 100644 --- a/src/apis/monitoring/v3.ts +++ b/src/apis/monitoring/v3.ts @@ -1924,7 +1924,7 @@ export namespace monitoring_v3 { /** * How often, in seconds, the uptime check is performed. Currently, the only * supported values are 60s (1 minute), 300s (5 minutes), 600s (10 minutes), - * and 900s (15 minutes). Optional, defaults to 300s. + * and 900s (15 minutes). Optional, defaults to 60s. */ period?: string; /** diff --git a/src/apis/pubsub/v1.ts b/src/apis/pubsub/v1.ts index c1328b6e491..f751b5b38fb 100644 --- a/src/apis/pubsub/v1.ts +++ b/src/apis/pubsub/v1.ts @@ -804,7 +804,7 @@ export namespace pubsub_v1 { * `Snapshot.expire_time` field. If the name is not provided in the request, * the server will assign a random name for this snapshot on the same * project as the subscription, conforming to the [resource name - * format](https://cloud.google.com/pubsub/docs/overview#names). The + * format](https://cloud.google.com/pubsub/docs/admin#resource_names). The * generated name is populated in the returned Snapshot object. Note that * for REST API requests, you must specify a name in the request. * @alias pubsub.projects.snapshots.create @@ -1827,7 +1827,7 @@ export namespace pubsub_v1 { * `NOT_FOUND`. If the name is not provided in the request, the server will * assign a random name for this subscription on the same project as the * topic, conforming to the [resource name - * format](https://cloud.google.com/pubsub/docs/overview#names). The + * format](https://cloud.google.com/pubsub/docs/admin#resource_names). The * generated name is populated in the returned Subscription object. Note * that for REST API requests, you must specify a name in the request. * @example diff --git a/src/apis/serviceconsumermanagement/v1.ts b/src/apis/serviceconsumermanagement/v1.ts index 250e6a7c1e3..e2e7b5ad187 100644 --- a/src/apis/serviceconsumermanagement/v1.ts +++ b/src/apis/serviceconsumermanagement/v1.ts @@ -2821,8 +2821,10 @@ export namespace serviceconsumermanagement_v1 { * service will be deactivated. New billing configuration will be applied if * specified. Omit billing configuration to keep the existing one. Service * account in the project will be created if previously non existing. - * Operation fails if any of the steps fail, but no rollback of already - * applied configuration changes is attempted. Operation. + * Specified folder will be ignored, moving tenant project to a different + * folder is not supported. Operation fails if any of the steps fail, but no + * rollback of already applied configuration changes is attempted. + * Operation. * @alias serviceconsumermanagement.services.tenancyUnits.applyProjectConfig * @memberOf! () * diff --git a/src/apis/serviceusage/v1.ts b/src/apis/serviceusage/v1.ts index 8de6ddc0d32..18a56c0fddf 100644 --- a/src/apis/serviceusage/v1.ts +++ b/src/apis/serviceusage/v1.ts @@ -2553,7 +2553,7 @@ export namespace serviceusage_v1 { * serviceusage.services.batchEnable * @desc Enable multiple services on a project. The operation is atomic: if * enabling any service fails, then the entire batch fails, and no state - * changes occur. Operation + * changes occur. * @alias serviceusage.services.batchEnable * @memberOf! () * @@ -2626,7 +2626,7 @@ export namespace serviceusage_v1 { * or security leaks. It is not valid to call the disable method on a * service that is not currently enabled. Callers will receive a * `FAILED_PRECONDITION` status if the target service is not currently - * enabled. Operation + * enabled. * @alias serviceusage.services.disable * @memberOf! () * @@ -2693,7 +2693,6 @@ export namespace serviceusage_v1 { /** * serviceusage.services.enable * @desc Enable a service so that it can be used with a project. - * Operation * @alias serviceusage.services.enable * @memberOf! () * diff --git a/src/apis/texttospeech/v1.ts b/src/apis/texttospeech/v1.ts index e227d53d793..603322922d6 100644 --- a/src/apis/texttospeech/v1.ts +++ b/src/apis/texttospeech/v1.ts @@ -118,6 +118,14 @@ export namespace texttospeech_v1 { * Required. The format of the requested audio byte stream. */ audioEncoding?: string; + /** + * An identifier which selects 'audio effects' profiles that are + * applied on (post synthesized) text to speech. Effects are applied on top + * of each other in the order they are given. See [audio-profiles](https: + * //cloud.google.com/text-to-speech/docs/audio-profiles) for current + * supported profile ids. + */ + effectsProfileId?: string[]; /** * Optional speaking pitch, in the range [-20.0, 20.0]. 20 means increase 20 * semitones from the original pitch. -20 means decrease 20 semitones from diff --git a/src/generator/templates/package.json.njk b/src/generator/templates/package.json.njk index 219f2d744c9..ff4443da4d0 100644 --- a/src/generator/templates/package.json.njk +++ b/src/generator/templates/package.json.njk @@ -29,7 +29,7 @@ "webpack": "webpack" }, "dependencies": { - "googleapis-common": "^0.6.0" + "googleapis-common": "^0.7.0" }, "devDependencies": { "gts": "^0.9.0", diff --git a/src/index.ts b/src/index.ts index a07ed036eda..e2be13cbbe7 100644 --- a/src/index.ts +++ b/src/index.ts @@ -123,6 +123,7 @@ export {doubleclicksearch_v2} from './apis/doubleclicksearch/v2'; export {drive_v2} from './apis/drive/v2'; export {drive_v3} from './apis/drive/v3'; export {driveactivity_v2} from './apis/driveactivity/v2'; +export {file_v1} from './apis/file/v1'; export {file_v1beta1} from './apis/file/v1beta1'; export {firebasedynamiclinks_v1} from './apis/firebasedynamiclinks/v1'; export {firebasehosting_v1beta1} from './apis/firebasehosting/v1beta1';