From 2acbffaa5c15ce2a904e3e2510f69ead13397720 Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Thu, 28 Mar 2019 15:46:07 -0700 Subject: [PATCH] feat: run the generator --- src/apis/androidenterprise/v1.ts | 22 ++- src/apis/bigquerydatatransfer/v1.ts | 252 +++++++++++++++++++++++++++- src/apis/cloudbuild/v1.ts | 14 ++ src/apis/cloudfunctions/v1.ts | 7 +- src/apis/cloudshell/v1alpha1.ts | 19 ++- src/apis/container/v1.ts | 22 +++ src/apis/dlp/v2.ts | 53 ++++++ src/apis/ml/v1.ts | 7 +- src/apis/redis/v1.ts | 100 +++++++++++ src/apis/redis/v1beta1.ts | 9 +- src/apis/servicebroker/v1.ts | 11 +- src/apis/servicebroker/v1alpha1.ts | 11 +- src/apis/servicebroker/v1beta1.ts | 11 +- src/apis/speech/v1.ts | 10 +- src/apis/speech/v1p1beta1.ts | 10 +- 15 files changed, 507 insertions(+), 51 deletions(-) diff --git a/src/apis/androidenterprise/v1.ts b/src/apis/androidenterprise/v1.ts index 2403b498da5..70d92bcc5bd 100644 --- a/src/apis/androidenterprise/v1.ts +++ b/src/apis/androidenterprise/v1.ts @@ -1894,11 +1894,21 @@ export namespace androidenterprise_v1 { userValue?: string; } /** - * WebApp resource info. + * A WebApps resource represents a web app created for an enterprise. Web apps + * are published to managed Google Play and can be distributed like other + * Android apps. On a user's device, a web app opens its specified URL. */ export interface Schema$WebApp { /** - * The display mode of the web app. + * The display mode of the web app. Possible values include: - + * "minimalUi", the device's status bar, navigation bar, the + * app's URL, and a refresh button are visible when the app is open. For + * HTTP URLs, you can only select this option. - "standalone", the + * device's status bar and navigation bar are visible when the app is + * open. - "fullScreen", the app opens in full screen mode, hiding + * the device's status and navigation bars. All browser UI elements, + * page URL, system status bar and back button are not visible, and the web + * app takes up the entirety of the available display area. */ displayMode?: string; /** @@ -1916,8 +1926,8 @@ export namespace androidenterprise_v1 { */ startUrl?: string; /** - * The title of the web application as displayed to the user (e.g., amongst - * a list of other applications, or as a label for an icon). + * The title of the web app as displayed to the user (e.g., amongst a list + * of other applications, or as a label for an icon). */ title?: string; /** @@ -1927,7 +1937,9 @@ export namespace androidenterprise_v1 { */ versionCode?: string; /** - * The ID of the application. + * The ID of the application. A string of the form "app:<package + * name>" where the package name always starts with the prefix + * "com.google.enterprise.webapp." followed by a random id. */ webAppId?: string; } diff --git a/src/apis/bigquerydatatransfer/v1.ts b/src/apis/bigquerydatatransfer/v1.ts index a809fe248f8..3040472efe1 100644 --- a/src/apis/bigquerydatatransfer/v1.ts +++ b/src/apis/bigquerydatatransfer/v1.ts @@ -446,6 +446,29 @@ export namespace bigquerydatatransfer_v1 { */ runs?: Schema$TransferRun[]; } + /** + * A request to start manual transfer runs. + */ + export interface Schema$StartManualTransferRunsRequest { + /** + * Specific run_time for a transfer run to be started. The + * requested_run_time must not be in the future. + */ + requestedRunTime?: string; + /** + * Time range for the transfer runs that should be started. + */ + requestedTimeRange?: Schema$TimeRange; + } + /** + * A response to start manual transfer runs. + */ + export interface Schema$StartManualTransferRunsResponse { + /** + * The transfer runs that were created. + */ + runs?: Schema$TransferRun[]; + } /** * The `Status` type defines a logical error model that is suitable for * different programming environments, including REST APIs and RPC APIs. It is @@ -499,6 +522,26 @@ export namespace bigquerydatatransfer_v1 { */ message?: string; } + /** + * A specification for a time range, this will request transfer runs with + * run_time between start_time (inclusive) and end_time (exclusive). + */ + export interface Schema$TimeRange { + /** + * End time of the range of transfer runs. For example, + * `"2017-05-30T00:00:00+00:00"`. The end_time must not be in the + * future. Creates transfer runs where run_time is in the range betwen + * start_time (inclusive) and end_time (exlusive). + */ + endTime?: string; + /** + * Start time of the range of transfer runs. For example, + * `"2017-05-25T00:00:00+00:00"`. The start_time must be strictly + * less than the end_time. Creates transfer runs where run_time is in the + * range betwen start_time (inclusive) and end_time (exlusive). + */ + startTime?: string; + } /** * Represents a data transfer configuration. A transfer configuration contains * all metadata needed to perform a data transfer. For example, @@ -1776,7 +1819,7 @@ export namespace bigquerydatatransfer_v1 { * @desc Creates transfer runs for a time range [start_time, end_time]. For * each date - or whatever granularity the data source supports - in the * range, one transfer run is created. Note that runs are created per UTC - * time in the time range. + * time in the time range. DEPRECATED: use StartManualTransferRuns instead. * @alias * bigquerydatatransfer.projects.locations.transferConfigs.scheduleRuns * @memberOf! () @@ -1853,6 +1896,93 @@ export namespace bigquerydatatransfer_v1 { parameters); } } + + + /** + * bigquerydatatransfer.projects.locations.transferConfigs.startManualRuns + * @desc Start manual transfer runs to be executed now with schedule_time + * equal to current time. The transfer runs can be created for a time range + * where the run_time is between start_time (inclusive) and end_time + * (exclusive), or for a specific run_time. + * @alias + * bigquerydatatransfer.projects.locations.transferConfigs.startManualRuns + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.parent Transfer configuration name in the form: `projects/{project_id}/transferConfigs/{config_id}`. + * @param {().StartManualTransferRunsRequest} 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 + */ + startManualRuns( + params?: + Params$Resource$Projects$Locations$Transferconfigs$Startmanualruns, + options?: MethodOptions): + GaxiosPromise; + startManualRuns( + params: + Params$Resource$Projects$Locations$Transferconfigs$Startmanualruns, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): + void; + startManualRuns( + params: + Params$Resource$Projects$Locations$Transferconfigs$Startmanualruns, + callback: BodyResponseCallback): + void; + startManualRuns( + callback: BodyResponseCallback): + void; + startManualRuns( + paramsOrCallback?: + Params$Resource$Projects$Locations$Transferconfigs$Startmanualruns| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: + BodyResponseCallback): + void|GaxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Transferconfigs$Startmanualruns; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Transferconfigs$Startmanualruns; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1/{+parent}:startManualRuns') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'POST' + }, + options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context + }; + if (callback) { + createAPIRequest( + parameters, callback); + } else { + return createAPIRequest( + parameters); + } + } } export interface Params$Resource$Projects$Locations$Transferconfigs$Create @@ -2028,6 +2158,24 @@ export namespace bigquerydatatransfer_v1 { */ requestBody?: Schema$ScheduleTransferRunsRequest; } + export interface Params$Resource$Projects$Locations$Transferconfigs$Startmanualruns + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Transfer configuration name in the form: + * `projects/{project_id}/transferConfigs/{config_id}`. + */ + parent?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$StartManualTransferRunsRequest; + } export class Resource$Projects$Locations$Transferconfigs$Runs { transferLogs: Resource$Projects$Locations$Transferconfigs$Runs$Transferlogs; @@ -2784,7 +2932,7 @@ export namespace bigquerydatatransfer_v1 { * @desc Creates transfer runs for a time range [start_time, end_time]. For * each date - or whatever granularity the data source supports - in the * range, one transfer run is created. Note that runs are created per UTC - * time in the time range. + * time in the time range. DEPRECATED: use StartManualTransferRuns instead. * @alias bigquerydatatransfer.projects.transferConfigs.scheduleRuns * @memberOf! () * @@ -2858,6 +3006,88 @@ export namespace bigquerydatatransfer_v1 { parameters); } } + + + /** + * bigquerydatatransfer.projects.transferConfigs.startManualRuns + * @desc Start manual transfer runs to be executed now with schedule_time + * equal to current time. The transfer runs can be created for a time range + * where the run_time is between start_time (inclusive) and end_time + * (exclusive), or for a specific run_time. + * @alias bigquerydatatransfer.projects.transferConfigs.startManualRuns + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.parent Transfer configuration name in the form: `projects/{project_id}/transferConfigs/{config_id}`. + * @param {().StartManualTransferRunsRequest} 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 + */ + startManualRuns( + params?: Params$Resource$Projects$Transferconfigs$Startmanualruns, + options?: MethodOptions): + GaxiosPromise; + startManualRuns( + params: Params$Resource$Projects$Transferconfigs$Startmanualruns, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): + void; + startManualRuns( + params: Params$Resource$Projects$Transferconfigs$Startmanualruns, + callback: BodyResponseCallback): + void; + startManualRuns( + callback: BodyResponseCallback): + void; + startManualRuns( + paramsOrCallback?: + Params$Resource$Projects$Transferconfigs$Startmanualruns| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: + BodyResponseCallback): + void|GaxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Transferconfigs$Startmanualruns; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Transferconfigs$Startmanualruns; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1/{+parent}:startManualRuns') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'POST' + }, + options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context + }; + if (callback) { + createAPIRequest( + parameters, callback); + } else { + return createAPIRequest( + parameters); + } + } } export interface Params$Resource$Projects$Transferconfigs$Create extends @@ -3033,6 +3263,24 @@ export namespace bigquerydatatransfer_v1 { */ requestBody?: Schema$ScheduleTransferRunsRequest; } + export interface Params$Resource$Projects$Transferconfigs$Startmanualruns + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Transfer configuration name in the form: + * `projects/{project_id}/transferConfigs/{config_id}`. + */ + parent?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$StartManualTransferRunsRequest; + } export class Resource$Projects$Transferconfigs$Runs { transferLogs: Resource$Projects$Transferconfigs$Runs$Transferlogs; diff --git a/src/apis/cloudbuild/v1.ts b/src/apis/cloudbuild/v1.ts index 8a4bb218d6c..f1e61986027 100644 --- a/src/apis/cloudbuild/v1.ts +++ b/src/apis/cloudbuild/v1.ts @@ -647,6 +647,10 @@ export namespace cloudbuild_v1 { * Response containing existing `BuildTriggers`. */ export interface Schema$ListBuildTriggersResponse { + /** + * Token to receive the next page of results. + */ + nextPageToken?: string; /** * `BuildTriggers` for the project, sorted by `create_time` descending. */ @@ -1932,6 +1936,8 @@ export namespace cloudbuild_v1 { * @memberOf! () * * @param {object} params Parameters for request + * @param {integer=} params.pageSize Number of results to return in the list. + * @param {string=} params.pageToken Token to provide to skip to a particular spot in the list. * @param {string} params.projectId ID of the project for which to list BuildTriggers. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. @@ -2188,6 +2194,14 @@ export namespace cloudbuild_v1 { */ auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + /** + * Number of results to return in the list. + */ + pageSize?: number; + /** + * Token to provide to skip to a particular spot in the list. + */ + pageToken?: string; /** * ID of the project for which to list BuildTriggers. */ diff --git a/src/apis/cloudfunctions/v1.ts b/src/apis/cloudfunctions/v1.ts index 62f48c61e50..dc29b6f737a 100644 --- a/src/apis/cloudfunctions/v1.ts +++ b/src/apis/cloudfunctions/v1.ts @@ -169,10 +169,9 @@ export namespace cloudfunctions_v1 { */ export interface Schema$Binding { /** - * Unimplemented. The condition that is associated with this binding. NOTE: - * an unsatisfied condition will not allow user access via current binding. - * Different bindings, including their conditions, are examined - * independently. + * The condition that is associated with this binding. NOTE: an unsatisfied + * condition will not allow user access via current binding. Different + * bindings, including their conditions, are examined independently. */ condition?: Schema$Expr; /** diff --git a/src/apis/cloudshell/v1alpha1.ts b/src/apis/cloudshell/v1alpha1.ts index 8518632f57f..4551275579f 100644 --- a/src/apis/cloudshell/v1alpha1.ts +++ b/src/apis/cloudshell/v1alpha1.ts @@ -117,10 +117,14 @@ export namespace cloudshell_v1alpha1 { */ accessToken?: string; /** - * The time when the token expires. If not set, defaults to one hour from - * when the server received the request. + * The time when the credentials expire. If not set, defaults to one hour + * from when the server received the request. */ expireTime?: string; + /** + * The OAuth ID token that should be sent to the environment. + */ + idToken?: string; } /** * Request message for CreatePublicKey. @@ -358,14 +362,15 @@ export namespace cloudshell_v1alpha1 { /** * cloudshell.users.environments.authorize - * @desc Sends an access token to a running environment on behalf of a user. - * When this completes, the environment will be authorized to run gcloud - * commands without requiring the user to manually authenticate. + * @desc Sends OAuth credentials to a running environment on behalf of a + * user. When this completes, the environment will be authorized to run + * various Google Cloud command line tools without requiring the user to + * manually authenticate. * @alias cloudshell.users.environments.authorize * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.name Name of the resource that should receive the token, for example `users/me/environments/default` or `users/someone@example.com/environments/default`. + * @param {string} params.name Name of the resource that should receive the credentials, for example `users/me/environments/default` or `users/someone@example.com/environments/default`. * @param {().AuthorizeEnvironmentRequest} 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. @@ -639,7 +644,7 @@ export namespace cloudshell_v1alpha1 { auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; /** - * Name of the resource that should receive the token, for example + * Name of the resource that should receive the credentials, for example * `users/me/environments/default` or * `users/someone@example.com/environments/default`. */ diff --git a/src/apis/container/v1.ts b/src/apis/container/v1.ts index ba1719a24c7..7a4f61ff8e3 100644 --- a/src/apis/container/v1.ts +++ b/src/apis/container/v1.ts @@ -268,6 +268,10 @@ export namespace container_v1 { * clusters are automatically deleted thirty days after creation. */ enableKubernetesAlpha?: boolean; + /** + * Enable the ability to use Cloud TPUs in this cluster. + */ + enableTpu?: boolean; /** * [Output only] The IP address of this cluster's master endpoint. The * endpoint can be accessed from the internet at @@ -446,6 +450,12 @@ export namespace container_v1 { * connected. */ subnetwork?: string; + /** + * [Output only] The IP address range of the Cloud TPUs in this cluster, in + * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + * notation (e.g. `1.2.3.4/29`). + */ + tpuIpv4CidrBlock?: string; /** * [Output only] The name of the Google Compute Engine * [zone](/compute/docs/zones#available) in which the cluster resides. This @@ -789,6 +799,18 @@ export namespace container_v1 { * subnetwork. */ subnetworkName?: string; + /** + * The IP address range of the Cloud TPUs in this cluster. If unspecified, a + * range will be automatically chosen with the default size. This field is + * only applicable when `use_ip_aliases` is true. If unspecified, the range + * will use the default size. Set to /netmask (e.g. `/14`) to have a range + * chosen with a specific netmask. Set to a + * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. + * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range + * to use. + */ + tpuIpv4CidrBlock?: string; /** * Whether alias IPs will be used for pod IPs in the cluster. */ diff --git a/src/apis/dlp/v2.ts b/src/apis/dlp/v2.ts index eeb8016aa82..613de68798c 100644 --- a/src/apis/dlp/v2.ts +++ b/src/apis/dlp/v2.ts @@ -726,6 +726,57 @@ export namespace dlp_v2 { */ storedInfoTypeId?: string; } + /** + * Pseudonymization method that generates deterministic encryption for the + * given input. Outputs a base64 encoded representation of the encrypted + * output. Uses AES-SIV based on the RFC https://tools.ietf.org/html/rfc5297. + */ + export interface Schema$GooglePrivacyDlpV2CryptoDeterministicConfig { + /** + * Optional. A context may be used for higher security and maintaining + * referential integrity such that the same identifier in two different + * contexts will be given a distinct surrogate. The context is appended to + * plaintext value being encrypted. On decryption the provided context is + * validated against the value used during encryption. If a context was + * provided during encryption, same context must be provided during + * decryption as well. If the context is not set, plaintext would be used + * as is for encryption. If the context is set but: 1. there is no record + * present when transforming a given value or 2. the field is not present + * when transforming a given value, plaintext would be used as is for + * encryption. Note that case (1) is expected when an + * `InfoTypeTransformation` is applied to both structured and non-structured + * `ContentItem`s. + */ + context?: Schema$GooglePrivacyDlpV2FieldId; + /** + * The key used by the encryption function. + */ + cryptoKey?: Schema$GooglePrivacyDlpV2CryptoKey; + /** + * The custom info type to annotate the surrogate with. This annotation will + * be applied to the surrogate by prefixing it with the name of the custom + * info type followed by the number of characters comprising the surrogate. + * The following scheme defines the format: <info type + * name>(<surrogate character count>):<surrogate> For + * example, if the name of custom info type is 'MY_TOKEN_INFO_TYPE' + * and the surrogate is 'abc', the full replacement value will be: + * 'MY_TOKEN_INFO_TYPE(3):abc' This annotation identifies the + * surrogate when inspecting content using the custom info type + * 'Surrogate'. This facilitates reversal of the surrogate when it + * occurs in free text. In order for inspection to work properly, the name + * of this info type must not occur naturally anywhere in your data; + * otherwise, inspection may either - reverse a surrogate that does not + * correspond to an actual identifier - be unable to parse the surrogate and + * result in an error Therefore, choose your custom info type name + * carefully after considering what your data looks like. One way to select + * a name that has a high chance of yielding reliable detection is to + * include one or more unicode characters that are highly improbable to + * exist in your data. For example, assuming your data is entered from a + * regular ASCII keyboard, the symbol with the hex code point 29DD might be + * used like so: ⧝MY_TOKEN_TYPE + */ + surrogateInfoType?: Schema$GooglePrivacyDlpV2InfoType; + } /** * Pseudonymization method that generates surrogates via cryptographic * hashing. Uses SHA-256. The key size must be either 32 or 64 bytes. Outputs @@ -2375,6 +2426,8 @@ export namespace dlp_v2 { export interface Schema$GooglePrivacyDlpV2PrimitiveTransformation { bucketingConfig?: Schema$GooglePrivacyDlpV2BucketingConfig; characterMaskConfig?: Schema$GooglePrivacyDlpV2CharacterMaskConfig; + cryptoDeterministicConfig?: + Schema$GooglePrivacyDlpV2CryptoDeterministicConfig; cryptoHashConfig?: Schema$GooglePrivacyDlpV2CryptoHashConfig; cryptoReplaceFfxFpeConfig?: Schema$GooglePrivacyDlpV2CryptoReplaceFfxFpeConfig; diff --git a/src/apis/ml/v1.ts b/src/apis/ml/v1.ts index 5a3eaa0365d..d4f1d6c46e6 100644 --- a/src/apis/ml/v1.ts +++ b/src/apis/ml/v1.ts @@ -1192,10 +1192,9 @@ export namespace ml_v1 { */ export interface Schema$GoogleIamV1__Binding { /** - * Unimplemented. The condition that is associated with this binding. NOTE: - * an unsatisfied condition will not allow user access via current binding. - * Different bindings, including their conditions, are examined - * independently. + * The condition that is associated with this binding. NOTE: an unsatisfied + * condition will not allow user access via current binding. Different + * bindings, including their conditions, are examined independently. */ condition?: Schema$GoogleType__Expr; /** diff --git a/src/apis/redis/v1.ts b/src/apis/redis/v1.ts index b49a2f5cf00..31c64cccd09 100644 --- a/src/apis/redis/v1.ts +++ b/src/apis/redis/v1.ts @@ -115,6 +115,17 @@ export namespace redis_v1 { * representation for `Empty` is empty JSON object `{}`. */ export interface Schema$Empty {} + /** + * Request for Failover. + */ + export interface Schema$FailoverInstanceRequest { + /** + * Optional. Available data protection modes that the user can choose. If + * it's unspecified, data protection mode will be LIMITED_DATA_LOSS by + * default. + */ + dataProtectionMode?: string; + } /** * This location metadata represents additional configuration options for a * given location where a Redis instance may be created. All fields are output @@ -787,6 +798,76 @@ export namespace redis_v1 { } + /** + * redis.projects.locations.instances.failover + * @desc Failover the master role to current replica node against a specific + * STANDARD tier redis instance. + * @alias redis.projects.locations.instances.failover + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.name Required. Redis instance resource name using the form: `projects/{project_id}/locations/{location_id}/instances/{instance_id}` where `location_id` refers to a GCP region + * @param {().FailoverInstanceRequest} 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 + */ + failover( + params?: Params$Resource$Projects$Locations$Instances$Failover, + options?: MethodOptions): GaxiosPromise; + failover( + params: Params$Resource$Projects$Locations$Instances$Failover, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + failover( + params: Params$Resource$Projects$Locations$Instances$Failover, + callback: BodyResponseCallback): void; + failover(callback: BodyResponseCallback): void; + failover( + paramsOrCallback?: + Params$Resource$Projects$Locations$Instances$Failover| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|GaxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Instances$Failover; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Instances$Failover; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1/{+name}:failover') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'POST' + }, + options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + /** * redis.projects.locations.instances.get * @desc Gets the details of a specific Redis instance. @@ -1034,6 +1115,25 @@ export namespace redis_v1 { */ name?: string; } + export interface Params$Resource$Projects$Locations$Instances$Failover extends + StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. Redis instance resource name using the form: + * `projects/{project_id}/locations/{location_id}/instances/{instance_id}` + * where `location_id` refers to a GCP region + */ + name?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$FailoverInstanceRequest; + } export interface Params$Resource$Projects$Locations$Instances$Get extends StandardParameters { /** diff --git a/src/apis/redis/v1beta1.ts b/src/apis/redis/v1beta1.ts index 194e76aaebd..68b6209f97a 100644 --- a/src/apis/redis/v1beta1.ts +++ b/src/apis/redis/v1beta1.ts @@ -245,14 +245,17 @@ export namespace redis_v1beta1 { /** * Optional. Redis configuration parameters, according to * http://redis.io/topics/config. Currently, the only supported parameters - * are: * maxmemory-policy * notify-keyspace-events + * are: Redis 3.2 and above: * maxmemory-policy * + * notify-keyspace-events Redis 4.0 and above: * activedefrag * + * lfu-log-factor * lfu-decay-time */ redisConfigs?: {[key: string]: string;}; /** * Optional. The version of Redis software. If not provided, latest * supported version will be used. Updating the version will perform an - * upgrade/downgrade to the new version. Currently, the supported values are - * `REDIS_3_2` for Redis 3.2. + * upgrade/downgrade to the new version. Currently, the supported values + * are: * `REDIS_4_0` for Redis 4.0 compatibility * `REDIS_3_2` for + * Redis 3.2 compatibility */ redisVersion?: string; /** diff --git a/src/apis/servicebroker/v1.ts b/src/apis/servicebroker/v1.ts index 2fa0ea94ba4..925570fc2fd 100644 --- a/src/apis/servicebroker/v1.ts +++ b/src/apis/servicebroker/v1.ts @@ -114,10 +114,9 @@ export namespace servicebroker_v1 { */ export interface Schema$GoogleIamV1__Binding { /** - * Unimplemented. The condition that is associated with this binding. NOTE: - * an unsatisfied condition will not allow user access via current binding. - * Different bindings, including their conditions, are examined - * independently. + * The condition that is associated with this binding. NOTE: an unsatisfied + * condition will not allow user access via current binding. Different + * bindings, including their conditions, are examined independently. */ condition?: Schema$GoogleType__Expr; /** @@ -131,8 +130,8 @@ export namespace servicebroker_v1 { * * `serviceAccount:{emailid}`: An email address that represents a service * account. For example, `my-other-app@appspot.gserviceaccount.com`. * * `group:{emailid}`: An email address that represents a Google group. For - * example, `admins@example.com`. * `domain:{domain}`: A Google Apps - * domain name that represents all the users of that domain. For example, + * example, `admins@example.com`. * `domain:{domain}`: The G Suite domain + * (primary) that represents all the users of that domain. For example, * `google.com` or `example.com`. */ members?: string[]; diff --git a/src/apis/servicebroker/v1alpha1.ts b/src/apis/servicebroker/v1alpha1.ts index f17ce1c0105..01be1cd6b7f 100644 --- a/src/apis/servicebroker/v1alpha1.ts +++ b/src/apis/servicebroker/v1alpha1.ts @@ -538,10 +538,9 @@ export namespace servicebroker_v1alpha1 { */ export interface Schema$GoogleIamV1__Binding { /** - * Unimplemented. The condition that is associated with this binding. NOTE: - * an unsatisfied condition will not allow user access via current binding. - * Different bindings, including their conditions, are examined - * independently. + * The condition that is associated with this binding. NOTE: an unsatisfied + * condition will not allow user access via current binding. Different + * bindings, including their conditions, are examined independently. */ condition?: Schema$GoogleType__Expr; /** @@ -555,8 +554,8 @@ export namespace servicebroker_v1alpha1 { * * `serviceAccount:{emailid}`: An email address that represents a service * account. For example, `my-other-app@appspot.gserviceaccount.com`. * * `group:{emailid}`: An email address that represents a Google group. For - * example, `admins@example.com`. * `domain:{domain}`: A Google Apps - * domain name that represents all the users of that domain. For example, + * example, `admins@example.com`. * `domain:{domain}`: The G Suite domain + * (primary) that represents all the users of that domain. For example, * `google.com` or `example.com`. */ members?: string[]; diff --git a/src/apis/servicebroker/v1beta1.ts b/src/apis/servicebroker/v1beta1.ts index a396d6bb662..8af9a49a149 100644 --- a/src/apis/servicebroker/v1beta1.ts +++ b/src/apis/servicebroker/v1beta1.ts @@ -611,10 +611,9 @@ export namespace servicebroker_v1beta1 { */ export interface Schema$GoogleIamV1__Binding { /** - * Unimplemented. The condition that is associated with this binding. NOTE: - * an unsatisfied condition will not allow user access via current binding. - * Different bindings, including their conditions, are examined - * independently. + * The condition that is associated with this binding. NOTE: an unsatisfied + * condition will not allow user access via current binding. Different + * bindings, including their conditions, are examined independently. */ condition?: Schema$GoogleType__Expr; /** @@ -628,8 +627,8 @@ export namespace servicebroker_v1beta1 { * * `serviceAccount:{emailid}`: An email address that represents a service * account. For example, `my-other-app@appspot.gserviceaccount.com`. * * `group:{emailid}`: An email address that represents a Google group. For - * example, `admins@example.com`. * `domain:{domain}`: A Google Apps - * domain name that represents all the users of that domain. For example, + * example, `admins@example.com`. * `domain:{domain}`: The G Suite domain + * (primary) that represents all the users of that domain. For example, * `google.com` or `example.com`. */ members?: string[]; diff --git a/src/apis/speech/v1.ts b/src/apis/speech/v1.ts index edf1cc2371f..ef35cddbb89 100644 --- a/src/apis/speech/v1.ts +++ b/src/apis/speech/v1.ts @@ -340,9 +340,9 @@ export namespace speech_v1 { * messages. Valid values are: 8000-48000. 16000 is optimal. For best * results, set the sampling rate of the audio source to 16000 Hz. If * that's not possible, use the native sample rate of the audio source - * (instead of re-sampling). This field is optional for `FLAC`, `WAV`. and - * 'MP3' audio files, and is required for all other audio formats. - * For details, see AudioEncoding. + * (instead of re-sampling). This field is optional for FLAC and WAV audio + * files, but is required for all other audio formats. For details, see + * AudioEncoding. */ sampleRateHertz?: number; /** @@ -1068,7 +1068,9 @@ export namespace speech_v1 { * @desc Performs asynchronous speech recognition: receive results via the * google.longrunning.Operations interface. Returns either an * `Operation.error` or an `Operation.response` which contains a - * `LongRunningRecognizeResponse` message. + * `LongRunningRecognizeResponse` message. For more information on + * asynchronous speech recognition, see the + * [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize). * @alias speech.speech.longrunningrecognize * @memberOf! () * diff --git a/src/apis/speech/v1p1beta1.ts b/src/apis/speech/v1p1beta1.ts index 4db135a020f..197de3a76ab 100644 --- a/src/apis/speech/v1p1beta1.ts +++ b/src/apis/speech/v1p1beta1.ts @@ -385,9 +385,9 @@ export namespace speech_v1p1beta1 { * messages. Valid values are: 8000-48000. 16000 is optimal. For best * results, set the sampling rate of the audio source to 16000 Hz. If * that's not possible, use the native sample rate of the audio source - * (instead of re-sampling). This field is optional for `FLAC`, `WAV`. and - * 'MP3' audio files, and is required for all other audio formats. - * For details, see AudioEncoding. + * (instead of re-sampling). This field is optional for FLAC and WAV audio + * files, but is required for all other audio formats. For details, see + * AudioEncoding. */ sampleRateHertz?: number; /** @@ -1167,7 +1167,9 @@ export namespace speech_v1p1beta1 { * @desc Performs asynchronous speech recognition: receive results via the * google.longrunning.Operations interface. Returns either an * `Operation.error` or an `Operation.response` which contains a - * `LongRunningRecognizeResponse` message. + * `LongRunningRecognizeResponse` message. For more information on + * asynchronous speech recognition, see the + * [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize). * @alias speech.speech.longrunningrecognize * @memberOf! () *