From 786b0a4c392a889a431c6d0e968996c0f0f3d3b8 Mon Sep 17 00:00:00 2001 From: Menno Date: Thu, 19 Apr 2018 05:38:01 +0200 Subject: [PATCH] fix: Replace string-template with url-template (#1108) --- package-lock.json | 22 +- package.json | 4 +- src/apis/abusiveexperiencereport/v1.ts | 2 +- src/apis/adexchangebuyer2/v2beta1.ts | 69 ++-- src/apis/adexperiencereport/v1.ts | 2 +- src/apis/admin/directory_v1.ts | 8 +- src/apis/analytics/v3.ts | 6 +- src/apis/analyticsreporting/v4.ts | 16 +- src/apis/androiddeviceprovisioning/v1.ts | 78 ++--- src/apis/androidmanagement/v1.ts | 38 +-- src/apis/appengine/v1.ts | 4 +- src/apis/appengine/v1beta.ts | 4 +- src/apis/appengine/v1beta4.ts | 4 +- src/apis/appengine/v1beta5.ts | 4 +- src/apis/bigquery/v2.ts | 4 +- src/apis/bigquerydatatransfer/v1.ts | 80 ++--- src/apis/calendar/v3.ts | 4 +- src/apis/chat/v1.ts | 24 +- src/apis/classroom/v1.ts | 91 +++-- src/apis/cloudbilling/v1.ts | 60 ++-- src/apis/cloudbuild/v1.ts | 50 ++- src/apis/clouddebugger/v2.ts | 83 +++-- src/apis/clouderrorreporting/v1beta1.ts | 12 +- src/apis/cloudfunctions/v1.ts | 50 +-- src/apis/cloudfunctions/v1beta2.ts | 38 +-- src/apis/cloudiot/v1.ts | 71 ++-- src/apis/cloudkms/v1.ts | 96 +++--- src/apis/cloudresourcemanager/v1.ts | 205 ++++++------ src/apis/cloudresourcemanager/v1beta1.ts | 58 ++-- src/apis/cloudresourcemanager/v2.ts | 78 +++-- src/apis/cloudresourcemanager/v2beta1.ts | 76 ++--- src/apis/cloudshell/v1.ts | 32 +- src/apis/cloudshell/v1alpha1.ts | 34 +- src/apis/cloudtasks/v2beta2.ts | 100 +++--- src/apis/cloudtrace/v1.ts | 6 +- src/apis/cloudtrace/v2.ts | 28 +- src/apis/compute/alpha.ts | 88 ++--- src/apis/compute/beta.ts | 52 +-- src/apis/compute/v1.ts | 16 +- src/apis/container/v1.ts | 77 ++--- src/apis/container/v1beta1.ts | 74 ++--- src/apis/content/v2.ts | 94 +++++- src/apis/dataflow/v1b3.ts | 33 +- src/apis/dataproc/v1.ts | 33 +- src/apis/dataproc/v1beta2.ts | 106 +++--- src/apis/datastore/v1.ts | 32 +- src/apis/datastore/v1beta1.ts | 18 +- src/apis/deploymentmanager/alpha.ts | 12 +- src/apis/deploymentmanager/v2.ts | 12 +- src/apis/deploymentmanager/v2beta.ts | 12 +- src/apis/dialogflow/v2.ts | 129 ++++---- src/apis/dialogflow/v2beta1.ts | 152 ++++----- src/apis/digitalassetlinks/v1.ts | 31 +- src/apis/dlp/v2.ts | 95 +++--- src/apis/dlp/v2beta1.ts | 47 +-- src/apis/dlp/v2beta2.ts | 97 +++--- src/apis/drive/v2.ts | 12 +- src/apis/firebasedynamiclinks/v1.ts | 8 +- src/apis/firebaserules/v1.ts | 44 +-- src/apis/firestore/v1beta1.ts | 58 ++-- src/apis/genomics/v1.ts | 402 ++++++++--------------- src/apis/genomics/v1alpha2.ts | 30 +- src/apis/genomics/v2alpha1.ts | 30 +- src/apis/groupssettings/v1.ts | 7 +- src/apis/iam/v1.ts | 113 +++---- src/apis/language/v1.ts | 22 +- src/apis/language/v1beta1.ts | 22 +- src/apis/language/v1beta2.ts | 22 +- src/apis/logging/v2.ts | 148 +++++---- src/apis/logging/v2beta1.ts | 41 +-- src/apis/manufacturers/v1.ts | 93 ++++-- src/apis/ml/v1.ts | 145 ++++---- src/apis/monitoring/v3.ts | 71 ++-- src/apis/oslogin/v1.ts | 18 +- src/apis/oslogin/v1alpha.ts | 18 +- src/apis/oslogin/v1beta.ts | 18 +- src/apis/partners/v2.ts | 6 +- src/apis/people/v1.ts | 47 +-- src/apis/poly/v1.ts | 6 +- src/apis/proximitybeacon/v1beta1.ts | 34 +- src/apis/pubsub/v1.ts | 91 ++--- src/apis/pubsub/v1beta1a.ts | 8 +- src/apis/pubsub/v1beta2.ts | 61 ++-- src/apis/runtimeconfig/v1.ts | 30 +- src/apis/runtimeconfig/v1beta1.ts | 83 +++-- src/apis/safebrowsing/v4.ts | 6 +- src/apis/script/v1.ts | 6 +- src/apis/serviceconsumermanagement/v1.ts | 297 ++++++++--------- src/apis/servicecontrol/v1.ts | 34 +- src/apis/servicemanagement/v1.ts | 319 +++++++++--------- src/apis/serviceusage/v1beta1.ts | 281 ++++++++-------- src/apis/serviceuser/v1.ts | 268 ++++++++------- src/apis/sheets/v4.ts | 155 +++++---- src/apis/slides/v1.ts | 34 +- src/apis/sourcerepo/v1.ts | 61 ++-- src/apis/spanner/v1.ts | 228 ++++++------- src/apis/speech/v1.ts | 20 +- src/apis/speech/v1beta1.ts | 20 +- src/apis/storagetransfer/v1.ts | 57 ++-- src/apis/streetviewpublish/v1.ts | 28 +- src/apis/tagmanager/v2.ts | 152 ++++----- src/apis/testing/v1.ts | 5 +- src/apis/toolresults/v1beta3.ts | 8 +- src/apis/tpu/v1alpha1.ts | 60 ++-- src/apis/vault/v1.ts | 6 +- src/apis/videointelligence/v1beta1.ts | 18 +- src/apis/vision/v1.ts | 158 ++++----- src/apis/vision/v1p1beta1.ts | 142 ++++---- src/apis/vision/v1p2beta1.ts | 142 ++++---- src/apis/youtube/v3.ts | 14 +- src/apis/youtubereporting/v1.ts | 8 +- src/lib/apirequest.ts | 10 +- src/scripts/generator_utils.ts | 8 +- 113 files changed, 3498 insertions(+), 3486 deletions(-) diff --git a/package-lock.json b/package-lock.json index 621708b20c..c382ecd6eb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -211,18 +211,18 @@ "@types/node": "9.6.4" } }, - "@types/string-template": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@types/string-template/-/string-template-1.0.2.tgz", - "integrity": "sha1-NjsnPJtFZwXjER41cekkj2R066Q=", - "dev": true - }, "@types/tmp": { "version": "0.0.33", "resolved": "https://registry.npmjs.org/@types/tmp/-/tmp-0.0.33.tgz", "integrity": "sha1-EHPEvIJHVK49EM+riKsCN7qWTk0=", "dev": true }, + "@types/url-template": { + "version": "2.0.28", + "resolved": "https://registry.npmjs.org/@types/url-template/-/url-template-2.0.28.tgz", + "integrity": "sha512-1i/YtOhvlWDbMDTWhCfvhyUwBS9vNFs78sJOyahoruJCcDbwaSH73AlnuCp7luKPm6qqdCg4VKq/IHUncl6gZA==", + "dev": true + }, "@types/uuid": { "version": "3.4.3", "resolved": "https://registry.npmjs.org/@types/uuid/-/uuid-3.4.3.tgz", @@ -8882,11 +8882,6 @@ "integrity": "sha512-zhSCtt8v2NDrRlPQpCNtw/heZLtfUDqxBM1udqikb/Hbk52LK4nQSwr10u77iopCW5LsyHpuXS0GnEc48mLeew==", "dev": true }, - "string-template": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/string-template/-/string-template-1.0.0.tgz", - "integrity": "sha1-np8iM9wA8hhxjsN5oopWc+zKi5Y=" - }, "string-width": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", @@ -9319,6 +9314,11 @@ "prepend-http": "1.0.4" } }, + "url-template": { + "version": "2.0.8", + "resolved": "https://registry.npmjs.org/url-template/-/url-template-2.0.8.tgz", + "integrity": "sha1-/FZaPMy/93MMd19WQflVV5FDnyE=" + }, "urlgrey": { "version": "0.4.4", "resolved": "https://registry.npmjs.org/urlgrey/-/urlgrey-0.4.4.tgz", diff --git a/package.json b/package.json index e8b26b29c4..890a51dfa1 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "google-auth-library": "^1.3.1", "pify": "^3.0.0", "qs": "^6.5.1", - "string-template": "^1.0.0", + "url-template": "^2.0.8", "uuid": "^3.2.1" }, "files": [ @@ -102,7 +102,7 @@ "@types/qs": "^6.5.1", "@types/rimraf": "^2.0.2", "@types/source-map-support": "^0.4.0", - "@types/string-template": "^1.0.2", + "@types/url-template": "^2.0.28", "@types/tmp": "^0.0.33", "@types/uuid": "^3.4.3", "axios": "^0.18.0", diff --git a/src/apis/abusiveexperiencereport/v1.ts b/src/apis/abusiveexperiencereport/v1.ts index 2c27cf32ad..e9ab9e226c 100644 --- a/src/apis/abusiveexperiencereport/v1.ts +++ b/src/apis/abusiveexperiencereport/v1.ts @@ -156,7 +156,7 @@ export class Resource$Sites { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), diff --git a/src/apis/adexchangebuyer2/v2beta1.ts b/src/apis/adexchangebuyer2/v2beta1.ts index 446df179cd..774ade7e31 100644 --- a/src/apis/adexchangebuyer2/v2beta1.ts +++ b/src/apis/adexchangebuyer2/v2beta1.ts @@ -510,7 +510,8 @@ export interface Schema$Date { */ day: number; /** - * Month of year. Must be from 1 to 12. + * Month of year. Must be from 1 to 12, or 0 if specifying a date without a + * month. */ month: number; /** @@ -535,9 +536,9 @@ export interface Schema$Disapproval { /** * 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 `{}`. + * 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 {} /** @@ -1017,8 +1018,8 @@ export interface Schema$MetricValue { * If value is exact, variance is 0. Can be used to calculate margin of error * as a percentage of value, using the following formula, where Z is the * standard constant that depends on the desired size of the confidence - * interval (e.g. for 90% confidence interval, use Z = 1.645): - * marginOfError = 100 * Z * sqrt(variance) / value + * interval (e.g. for 90% confidence interval, use Z = 1.645): marginOfError = + * 100 * Z * sqrt(variance) / value */ variance: string; } @@ -2562,7 +2563,7 @@ export class Resource$Bidders$Accounts$Filtersets { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2beta1/{ownerName}/filterSets') + url: (rootUrl + '/v2beta1/{+ownerName}/filterSets') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -2615,7 +2616,7 @@ export class Resource$Bidders$Accounts$Filtersets { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2beta1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE' }, options), @@ -2667,7 +2668,7 @@ export class Resource$Bidders$Accounts$Filtersets { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2beta1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), @@ -2725,7 +2726,7 @@ export class Resource$Bidders$Accounts$Filtersets { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2beta1/{ownerName}/filterSets') + url: (rootUrl + '/v2beta1/{+ownerName}/filterSets') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -2795,7 +2796,7 @@ export class Resource$Bidders$Accounts$Filtersets$Bidmetrics { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2beta1/{filterSetName}/bidMetrics') + url: (rootUrl + '/v2beta1/{+filterSetName}/bidMetrics') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -2868,7 +2869,7 @@ export class Resource$Bidders$Accounts$Filtersets$Bidresponseerrors { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2beta1/{filterSetName}/bidResponseErrors') + url: (rootUrl + '/v2beta1/{+filterSetName}/bidResponseErrors') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -2945,7 +2946,7 @@ export class Resource$Bidders$Accounts$Filtersets$Bidresponseswithoutbids { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2beta1/{filterSetName}/bidResponsesWithoutBids') + url: (rootUrl + '/v2beta1/{+filterSetName}/bidResponsesWithoutBids') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -3021,7 +3022,7 @@ export class Resource$Bidders$Accounts$Filtersets$Filteredbidrequests { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2beta1/{filterSetName}/filteredBidRequests') + url: (rootUrl + '/v2beta1/{+filterSetName}/filteredBidRequests') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -3101,7 +3102,7 @@ export class Resource$Bidders$Accounts$Filtersets$Filteredbids { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2beta1/{filterSetName}/filteredBids') + url: (rootUrl + '/v2beta1/{+filterSetName}/filteredBids') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -3178,7 +3179,7 @@ export class Resource$Bidders$Accounts$Filtersets$Filteredbids$Creatives { { url: (rootUrl + - '/v2beta1/{filterSetName}/filteredBids/{creativeStatusId}/creatives') + '/v2beta1/{+filterSetName}/filteredBids/{creativeStatusId}/creatives') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -3258,7 +3259,7 @@ export class Resource$Bidders$Accounts$Filtersets$Filteredbids$Details { { url: (rootUrl + - '/v2beta1/{filterSetName}/filteredBids/{creativeStatusId}/details') + '/v2beta1/{+filterSetName}/filteredBids/{creativeStatusId}/details') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -3334,7 +3335,7 @@ export class Resource$Bidders$Accounts$Filtersets$Impressionmetrics { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2beta1/{filterSetName}/impressionMetrics') + url: (rootUrl + '/v2beta1/{+filterSetName}/impressionMetrics') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -3407,7 +3408,7 @@ export class Resource$Bidders$Accounts$Filtersets$Losingbids { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2beta1/{filterSetName}/losingBids') + url: (rootUrl + '/v2beta1/{+filterSetName}/losingBids') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -3483,7 +3484,7 @@ export class Resource$Bidders$Accounts$Filtersets$Nonbillablewinningbids { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2beta1/{filterSetName}/nonBillableWinningBids') + url: (rootUrl + '/v2beta1/{+filterSetName}/nonBillableWinningBids') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -3577,7 +3578,7 @@ export class Resource$Bidders$Filtersets { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2beta1/{ownerName}/filterSets') + url: (rootUrl + '/v2beta1/{+ownerName}/filterSets') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -3630,7 +3631,7 @@ export class Resource$Bidders$Filtersets { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2beta1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE' }, options), @@ -3682,7 +3683,7 @@ export class Resource$Bidders$Filtersets { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2beta1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), @@ -3740,7 +3741,7 @@ export class Resource$Bidders$Filtersets { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2beta1/{ownerName}/filterSets') + url: (rootUrl + '/v2beta1/{+ownerName}/filterSets') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -3810,7 +3811,7 @@ export class Resource$Bidders$Filtersets$Bidmetrics { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2beta1/{filterSetName}/bidMetrics') + url: (rootUrl + '/v2beta1/{+filterSetName}/bidMetrics') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -3883,7 +3884,7 @@ export class Resource$Bidders$Filtersets$Bidresponseerrors { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2beta1/{filterSetName}/bidResponseErrors') + url: (rootUrl + '/v2beta1/{+filterSetName}/bidResponseErrors') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -3959,7 +3960,7 @@ export class Resource$Bidders$Filtersets$Bidresponseswithoutbids { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2beta1/{filterSetName}/bidResponsesWithoutBids') + url: (rootUrl + '/v2beta1/{+filterSetName}/bidResponsesWithoutBids') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -4034,7 +4035,7 @@ export class Resource$Bidders$Filtersets$Filteredbidrequests { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2beta1/{filterSetName}/filteredBidRequests') + url: (rootUrl + '/v2beta1/{+filterSetName}/filteredBidRequests') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -4113,7 +4114,7 @@ export class Resource$Bidders$Filtersets$Filteredbids { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2beta1/{filterSetName}/filteredBids') + url: (rootUrl + '/v2beta1/{+filterSetName}/filteredBids') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -4189,7 +4190,7 @@ export class Resource$Bidders$Filtersets$Filteredbids$Creatives { { url: (rootUrl + - '/v2beta1/{filterSetName}/filteredBids/{creativeStatusId}/creatives') + '/v2beta1/{+filterSetName}/filteredBids/{creativeStatusId}/creatives') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -4268,7 +4269,7 @@ export class Resource$Bidders$Filtersets$Filteredbids$Details { { url: (rootUrl + - '/v2beta1/{filterSetName}/filteredBids/{creativeStatusId}/details') + '/v2beta1/{+filterSetName}/filteredBids/{creativeStatusId}/details') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -4344,7 +4345,7 @@ export class Resource$Bidders$Filtersets$Impressionmetrics { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2beta1/{filterSetName}/impressionMetrics') + url: (rootUrl + '/v2beta1/{+filterSetName}/impressionMetrics') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -4417,7 +4418,7 @@ export class Resource$Bidders$Filtersets$Losingbids { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2beta1/{filterSetName}/losingBids') + url: (rootUrl + '/v2beta1/{+filterSetName}/losingBids') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -4492,7 +4493,7 @@ export class Resource$Bidders$Filtersets$Nonbillablewinningbids { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2beta1/{filterSetName}/nonBillableWinningBids') + url: (rootUrl + '/v2beta1/{+filterSetName}/nonBillableWinningBids') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, diff --git a/src/apis/adexperiencereport/v1.ts b/src/apis/adexperiencereport/v1.ts index bdd61a65c5..c4af7a3809 100644 --- a/src/apis/adexperiencereport/v1.ts +++ b/src/apis/adexperiencereport/v1.ts @@ -173,7 +173,7 @@ export class Resource$Sites { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), diff --git a/src/apis/admin/directory_v1.ts b/src/apis/admin/directory_v1.ts index f56bf0697d..bbc5f91771 100644 --- a/src/apis/admin/directory_v1.ts +++ b/src/apis/admin/directory_v1.ts @@ -5021,7 +5021,7 @@ export class Resource$Orgunits { { url: (rootUrl + - '/admin/directory/v1/customer/{customerId}/orgunits/{orgUnitPath}') + '/admin/directory/v1/customer/{customerId}/orgunits{/orgUnitPath*}') .replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE' }, @@ -5075,7 +5075,7 @@ export class Resource$Orgunits { { url: (rootUrl + - '/admin/directory/v1/customer/{customerId}/orgunits/{orgUnitPath}') + '/admin/directory/v1/customer/{customerId}/orgunits{/orgUnitPath*}') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -5243,7 +5243,7 @@ export class Resource$Orgunits { { url: (rootUrl + - '/admin/directory/v1/customer/{customerId}/orgunits/{orgUnitPath}') + '/admin/directory/v1/customer/{customerId}/orgunits{/orgUnitPath*}') .replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH' }, @@ -5300,7 +5300,7 @@ export class Resource$Orgunits { { url: (rootUrl + - '/admin/directory/v1/customer/{customerId}/orgunits/{orgUnitPath}') + '/admin/directory/v1/customer/{customerId}/orgunits{/orgUnitPath*}') .replace(/([^:]\/)\/+/g, '$1'), method: 'PUT' }, diff --git a/src/apis/analytics/v3.ts b/src/apis/analytics/v3.ts index cd0f879d7d..68432429bb 100644 --- a/src/apis/analytics/v3.ts +++ b/src/apis/analytics/v3.ts @@ -1175,9 +1175,9 @@ export interface Schema$FilterExpression { * MOBILE_HAS_QWERTY_KEYBOARD (Boolean Field), - MOBILE_HAS_NFC_SUPPORT * (Boolean Field), - MOBILE_HAS_CELLULAR_RADIO (Boolean Field), - * MOBILE_HAS_WIFI_SUPPORT (Boolean Field), - MOBILE_BRAND_NAME, - - * MOBILE_MODEL_NAME, - MOBILE_MARKETING_NAME, - MOBILE_POINTING_METHOD, - * - Social - SOCIAL_NETWORK, - SOCIAL_ACTION, - SOCIAL_ACTION_TARGET, - * - Custom dimension - CUSTOM_DIMENSION (See accompanying field index), + * MOBILE_MODEL_NAME, - MOBILE_MARKETING_NAME, - MOBILE_POINTING_METHOD, - + * Social - SOCIAL_NETWORK, - SOCIAL_ACTION, - SOCIAL_ACTION_TARGET, - + * Custom dimension - CUSTOM_DIMENSION (See accompanying field index), */ field: string; /** diff --git a/src/apis/analyticsreporting/v4.ts b/src/apis/analyticsreporting/v4.ts index 1e34ac548c..0d3d9ff3ca 100644 --- a/src/apis/analyticsreporting/v4.ts +++ b/src/apis/analyticsreporting/v4.ts @@ -97,13 +97,12 @@ export interface Schema$Cohort { /** * Defines a cohort group. For example: "cohortGroup": { * "cohorts": [{ "name": "cohort 1", - * "type": "FIRST_VISIT_DATE", - * "dateRange": { "startDate": "2015-08-01", - * "endDate": "2015-08-01" } },{ - * "name": "cohort 2" "type": - * "FIRST_VISIT_DATE" "dateRange": { - * "startDate": "2015-07-01", "endDate": - * "2015-07-01" } }] } + * "type": "FIRST_VISIT_DATE", "dateRange": { + * "startDate": "2015-08-01", "endDate": + * "2015-08-01" } },{ "name": "cohort + * 2" "type": "FIRST_VISIT_DATE" + * "dateRange": { "startDate": "2015-07-01", + * "endDate": "2015-07-01" } }] } */ export interface Schema$CohortGroup { /** @@ -834,8 +833,7 @@ export interface Schema$SegmentFilter { * to match all visits not from "New York", we can define the * segment as follows: "sessionSegment": { * "segmentFilters": [{ "simpleSegment" :{ - * "orFiltersForSegment": [{ - * "segmentFilterClauses":[{ + * "orFiltersForSegment": [{ "segmentFilterClauses":[{ * "dimensionFilter": { "dimensionName": * "ga:city", "expressions": ["New * York"] } }] }] }, diff --git a/src/apis/androiddeviceprovisioning/v1.ts b/src/apis/androiddeviceprovisioning/v1.ts index 14a4009f13..baff6a2ce7 100644 --- a/src/apis/androiddeviceprovisioning/v1.ts +++ b/src/apis/androiddeviceprovisioning/v1.ts @@ -477,9 +477,9 @@ export interface Schema$Dpc { /** * 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 `{}`. + * 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 {} /** @@ -702,15 +702,15 @@ export interface Schema$PerDeviceStatusInBatch { * 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. + * 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 { /** @@ -918,7 +918,7 @@ export class Resource$Customers$Configurations { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{parent}/configurations') + url: (rootUrl + '/v1/{+parent}/configurations') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -971,7 +971,7 @@ export class Resource$Customers$Configurations { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE' }, options), @@ -1023,7 +1023,7 @@ export class Resource$Customers$Configurations { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), @@ -1082,7 +1082,7 @@ export class Resource$Customers$Configurations { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{parent}/configurations') + url: (rootUrl + '/v1/{+parent}/configurations') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -1141,7 +1141,7 @@ export class Resource$Customers$Configurations { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH' }, options), @@ -1209,7 +1209,7 @@ export class Resource$Customers$Devices { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{parent}/devices:applyConfiguration') + url: (rootUrl + '/v1/{+parent}/devices:applyConfiguration') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -1259,7 +1259,7 @@ export class Resource$Customers$Devices { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), @@ -1318,7 +1318,7 @@ export class Resource$Customers$Devices { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{parent}/devices') + url: (rootUrl + '/v1/{+parent}/devices') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -1373,7 +1373,7 @@ export class Resource$Customers$Devices { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{parent}/devices:removeConfiguration') + url: (rootUrl + '/v1/{+parent}/devices:removeConfiguration') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -1428,7 +1428,7 @@ export class Resource$Customers$Devices { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{parent}/devices:unclaim') + url: (rootUrl + '/v1/{+parent}/devices:unclaim') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -1498,7 +1498,7 @@ export class Resource$Customers$Dpcs { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{parent}/dpcs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/dpcs').replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), @@ -1564,7 +1564,7 @@ export class Resource$Operations { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), @@ -1648,7 +1648,7 @@ export class Resource$Partners$Customers { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{parent}/customers') + url: (rootUrl + '/v1/{+parent}/customers') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -1707,7 +1707,7 @@ export class Resource$Partners$Customers { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/partners/{partnerId}/customers') + url: (rootUrl + '/v1/partners/{+partnerId}/customers') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -1777,7 +1777,7 @@ export class Resource$Partners$Devices { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/partners/{partnerId}/devices:claim') + url: (rootUrl + '/v1/partners/{+partnerId}/devices:claim') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -1835,7 +1835,7 @@ export class Resource$Partners$Devices { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/partners/{partnerId}/devices:claimAsync') + url: (rootUrl + '/v1/partners/{+partnerId}/devices:claimAsync') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -1896,8 +1896,9 @@ export class Resource$Partners$Devices { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/partners/{partnerId}/devices:findByIdentifier') - .replace(/([^:]\/)\/+/g, '$1'), + url: + (rootUrl + '/v1/partners/{+partnerId}/devices:findByIdentifier') + .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, options), @@ -1959,7 +1960,7 @@ export class Resource$Partners$Devices { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/partners/{partnerId}/devices:findByOwner') + url: (rootUrl + '/v1/partners/{+partnerId}/devices:findByOwner') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -2009,7 +2010,7 @@ export class Resource$Partners$Devices { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), @@ -2065,9 +2066,10 @@ export class Resource$Partners$Devices { const parameters = { options: Object.assign( { - url: (rootUrl + - '/v1/partners/{metadataOwnerId}/devices/{deviceId}/metadata') - .replace(/([^:]\/)\/+/g, '$1'), + url: + (rootUrl + + '/v1/partners/{+metadataOwnerId}/devices/{+deviceId}/metadata') + .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, options), @@ -2120,7 +2122,7 @@ export class Resource$Partners$Devices { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/partners/{partnerId}/devices:unclaim') + url: (rootUrl + '/v1/partners/{+partnerId}/devices:unclaim') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -2178,7 +2180,7 @@ export class Resource$Partners$Devices { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/partners/{partnerId}/devices:unclaimAsync') + url: (rootUrl + '/v1/partners/{+partnerId}/devices:unclaimAsync') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -2238,7 +2240,7 @@ export class Resource$Partners$Devices { options: Object.assign( { url: (rootUrl + - '/v1/partners/{partnerId}/devices:updateMetadataAsync') + '/v1/partners/{+partnerId}/devices:updateMetadataAsync') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, diff --git a/src/apis/androidmanagement/v1.ts b/src/apis/androidmanagement/v1.ts index de94f31733..2ba95f969d 100644 --- a/src/apis/androidmanagement/v1.ts +++ b/src/apis/androidmanagement/v1.ts @@ -1754,7 +1754,7 @@ export class Resource$Enterprises { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), @@ -1809,7 +1809,7 @@ export class Resource$Enterprises { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH' }, options), @@ -1872,7 +1872,7 @@ export class Resource$Enterprises$Applications { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), @@ -1937,7 +1937,7 @@ export class Resource$Enterprises$Devices { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE' }, options), @@ -1986,7 +1986,7 @@ export class Resource$Enterprises$Devices { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), @@ -2043,7 +2043,7 @@ export class Resource$Enterprises$Devices { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}:issueCommand') + url: (rootUrl + '/v1/{+name}:issueCommand') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -2100,7 +2100,7 @@ export class Resource$Enterprises$Devices { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{parent}/devices') + url: (rootUrl + '/v1/{+parent}/devices') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -2154,7 +2154,7 @@ export class Resource$Enterprises$Devices { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH' }, options), @@ -2224,7 +2224,7 @@ export class Resource$Enterprises$Devices$Operations { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, options), @@ -2278,7 +2278,7 @@ export class Resource$Enterprises$Devices$Operations { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE' }, options), @@ -2331,7 +2331,7 @@ export class Resource$Enterprises$Devices$Operations { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), @@ -2398,7 +2398,7 @@ export class Resource$Enterprises$Devices$Operations { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), @@ -2466,7 +2466,7 @@ export class Resource$Enterprises$Enrollmenttokens { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{parent}/enrollmentTokens') + url: (rootUrl + '/v1/{+parent}/enrollmentTokens') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -2519,7 +2519,7 @@ export class Resource$Enterprises$Enrollmenttokens { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE' }, options), @@ -2583,7 +2583,7 @@ export class Resource$Enterprises$Policies { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE' }, options), @@ -2632,7 +2632,7 @@ export class Resource$Enterprises$Policies { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), @@ -2688,7 +2688,7 @@ export class Resource$Enterprises$Policies { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{parent}/policies') + url: (rootUrl + '/v1/{+parent}/policies') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -2742,7 +2742,7 @@ export class Resource$Enterprises$Policies { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH' }, options), @@ -2809,7 +2809,7 @@ export class Resource$Enterprises$Webtokens { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{parent}/webTokens') + url: (rootUrl + '/v1/{+parent}/webTokens') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, diff --git a/src/apis/appengine/v1.ts b/src/apis/appengine/v1.ts index 17b80dc1a1..1642a362be 100644 --- a/src/apis/appengine/v1.ts +++ b/src/apis/appengine/v1.ts @@ -3890,8 +3890,8 @@ export class Resource$Apps$Services$Versions { * fields depending on the App Engine environment and type of scaling that the * version resource uses: serving_status * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.serving_status): - * For Version resources that use basic scaling, manual scaling, or run in - * the App Engine flexible environment. instance_class + * For Version resources that use basic scaling, manual scaling, or run in the + * App Engine flexible environment. instance_class * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.instance_class): * For Version resources that run in the App Engine standard environment. * automatic_scaling.min_idle_instances diff --git a/src/apis/appengine/v1beta.ts b/src/apis/appengine/v1beta.ts index 55a660f487..5ced4a36b2 100644 --- a/src/apis/appengine/v1beta.ts +++ b/src/apis/appengine/v1beta.ts @@ -4009,8 +4009,8 @@ export class Resource$Apps$Services$Versions { * fields depending on the App Engine environment and type of scaling that the * version resource uses: serving_status * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#Version.FIELDS.serving_status): - * For Version resources that use basic scaling, manual scaling, or run in - * the App Engine flexible environment. instance_class + * For Version resources that use basic scaling, manual scaling, or run in the + * App Engine flexible environment. instance_class * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#Version.FIELDS.instance_class): * For Version resources that run in the App Engine standard environment. * automatic_scaling.min_idle_instances diff --git a/src/apis/appengine/v1beta4.ts b/src/apis/appengine/v1beta4.ts index 73761d0786..36aa464f6e 100644 --- a/src/apis/appengine/v1beta4.ts +++ b/src/apis/appengine/v1beta4.ts @@ -2222,8 +2222,8 @@ export class Resource$Apps$Modules$Versions { * fields depending on the App Engine environment and type of scaling that the * version resource uses: serving_status * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta4/apps.modules.versions#Version.FIELDS.serving_status): - * For Version resources that use basic scaling, manual scaling, or run in - * the App Engine flexible environment. instance_class + * For Version resources that use basic scaling, manual scaling, or run in the + * App Engine flexible environment. instance_class * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta4/apps.modules.versions#Version.FIELDS.instance_class): * For Version resources that run in the App Engine standard environment. * automatic_scaling.min_idle_instances diff --git a/src/apis/appengine/v1beta5.ts b/src/apis/appengine/v1beta5.ts index eb77883e6b..d6bf0b5a63 100644 --- a/src/apis/appengine/v1beta5.ts +++ b/src/apis/appengine/v1beta5.ts @@ -2331,8 +2331,8 @@ export class Resource$Apps$Services$Versions { * fields depending on the App Engine environment and type of scaling that the * version resource uses: serving_status * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta5/apps.services.versions#Version.FIELDS.serving_status): - * For Version resources that use basic scaling, manual scaling, or run in - * the App Engine flexible environment. instance_class + * For Version resources that use basic scaling, manual scaling, or run in the + * App Engine flexible environment. instance_class * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta5/apps.services.versions#Version.FIELDS.instance_class): * For Version resources that run in the App Engine standard environment. * automatic_scaling.min_idle_instances diff --git a/src/apis/bigquery/v2.ts b/src/apis/bigquery/v2.ts index 6329939193..b0e0b15b57 100644 --- a/src/apis/bigquery/v2.ts +++ b/src/apis/bigquery/v2.ts @@ -295,8 +295,8 @@ export interface Schema$Dataset { */ lastModifiedTime: string; /** - * The geographic location where the dataset should reside. Possible values - * include EU and US. The default value is US. + * The geographic location where the dataset should reside. The default value + * is US. */ location: string; /** diff --git a/src/apis/bigquerydatatransfer/v1.ts b/src/apis/bigquerydatatransfer/v1.ts index dfc7e255c4..567ddc154b 100644 --- a/src/apis/bigquerydatatransfer/v1.ts +++ b/src/apis/bigquerydatatransfer/v1.ts @@ -247,9 +247,9 @@ export interface Schema$DataSourceParameter { /** * 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 `{}`. + * 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 {} /** @@ -403,15 +403,15 @@ export interface Schema$ScheduleTransferRunsResponse { * 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. + * 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 { /** @@ -672,7 +672,7 @@ export class Resource$Projects$Datasources { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}:checkValidCreds') + url: (rootUrl + '/v1/{+name}:checkValidCreds') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -725,7 +725,7 @@ export class Resource$Projects$Datasources { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), @@ -784,7 +784,7 @@ export class Resource$Projects$Datasources { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{parent}/dataSources') + url: (rootUrl + '/v1/{+parent}/dataSources') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -853,7 +853,7 @@ export class Resource$Projects$Locations { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), @@ -912,7 +912,7 @@ export class Resource$Projects$Locations { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}/locations') + url: (rootUrl + '/v1/{+name}/locations') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -985,7 +985,7 @@ export class Resource$Projects$Locations$Datasources { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}:checkValidCreds') + url: (rootUrl + '/v1/{+name}:checkValidCreds') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -1038,7 +1038,7 @@ export class Resource$Projects$Locations$Datasources { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), @@ -1097,7 +1097,7 @@ export class Resource$Projects$Locations$Datasources { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{parent}/dataSources') + url: (rootUrl + '/v1/{+parent}/dataSources') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -1168,7 +1168,7 @@ export class Resource$Projects$Locations$Transferconfigs { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{parent}/transferConfigs') + url: (rootUrl + '/v1/{+parent}/transferConfigs') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -1221,7 +1221,7 @@ export class Resource$Projects$Locations$Transferconfigs { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE' }, options), @@ -1273,7 +1273,7 @@ export class Resource$Projects$Locations$Transferconfigs { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), @@ -1333,7 +1333,7 @@ export class Resource$Projects$Locations$Transferconfigs { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{parent}/transferConfigs') + url: (rootUrl + '/v1/{+parent}/transferConfigs') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -1393,7 +1393,7 @@ export class Resource$Projects$Locations$Transferconfigs { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH' }, options), @@ -1454,7 +1454,7 @@ export class Resource$Projects$Locations$Transferconfigs { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{parent}:scheduleRuns') + url: (rootUrl + '/v1/{+parent}:scheduleRuns') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -1521,7 +1521,7 @@ export class Resource$Projects$Locations$Transferconfigs$Runs { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE' }, options), @@ -1572,7 +1572,7 @@ export class Resource$Projects$Locations$Transferconfigs$Runs { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), @@ -1632,7 +1632,7 @@ export class Resource$Projects$Locations$Transferconfigs$Runs { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{parent}/runs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/runs').replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), @@ -1703,7 +1703,7 @@ export class Resource$Projects$Locations$Transferconfigs$Runs$Transferlogs { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{parent}/transferLogs') + url: (rootUrl + '/v1/{+parent}/transferLogs') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -1776,7 +1776,7 @@ export class Resource$Projects$Transferconfigs { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{parent}/transferConfigs') + url: (rootUrl + '/v1/{+parent}/transferConfigs') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -1829,7 +1829,7 @@ export class Resource$Projects$Transferconfigs { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE' }, options), @@ -1881,7 +1881,7 @@ export class Resource$Projects$Transferconfigs { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), @@ -1941,7 +1941,7 @@ export class Resource$Projects$Transferconfigs { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{parent}/transferConfigs') + url: (rootUrl + '/v1/{+parent}/transferConfigs') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -2001,7 +2001,7 @@ export class Resource$Projects$Transferconfigs { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH' }, options), @@ -2062,7 +2062,7 @@ export class Resource$Projects$Transferconfigs { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{parent}:scheduleRuns') + url: (rootUrl + '/v1/{+parent}:scheduleRuns') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -2129,7 +2129,7 @@ export class Resource$Projects$Transferconfigs$Runs { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE' }, options), @@ -2180,7 +2180,7 @@ export class Resource$Projects$Transferconfigs$Runs { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), @@ -2240,7 +2240,7 @@ export class Resource$Projects$Transferconfigs$Runs { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{parent}/runs').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/runs').replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), @@ -2310,7 +2310,7 @@ export class Resource$Projects$Transferconfigs$Runs$Transferlogs { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{parent}/transferLogs') + url: (rootUrl + '/v1/{+parent}/transferLogs') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, diff --git a/src/apis/calendar/v3.ts b/src/apis/calendar/v3.ts index f7aa0f3fed..5b5dd1f775 100644 --- a/src/apis/calendar/v3.ts +++ b/src/apis/calendar/v3.ts @@ -710,8 +710,8 @@ export interface Schema$Event { iCalUID: string; /** * Opaque identifier of the event. When creating new single or recurring - * events, you can specify their IDs. Provided IDs must follow these rules: - * - characters allowed in the ID are those used in base32hex encoding, i.e. + * events, you can specify their IDs. Provided IDs must follow these rules: - + * characters allowed in the ID are those used in base32hex encoding, i.e. * lowercase letters a-v and digits 0-9, see section 3.1.2 in RFC2938 - the * length of the ID must be between 5 and 1024 characters - the ID must be * unique per calendar Due to the globally distributed nature of the system, diff --git a/src/apis/chat/v1.ts b/src/apis/chat/v1.ts index b8453e17c1..cafa7ec595 100644 --- a/src/apis/chat/v1.ts +++ b/src/apis/chat/v1.ts @@ -102,8 +102,8 @@ export interface Schema$ActionResponse { * "name":"users/107946847022116401880", * "displayName":"FooBot", * "avatarUrl":"https://goo.gl/aeDtrS", - * "type":"BOT" }, - * "type":"MENTION" } }] ``` + * "type":"BOT" }, "type":"MENTION" + * } }] ``` */ export interface Schema$Annotation { /** @@ -197,9 +197,9 @@ export interface Schema$CardHeader { /** * 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 `{}`. + * 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 {} /** @@ -583,7 +583,7 @@ export class Resource$Spaces { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), @@ -698,7 +698,7 @@ export class Resource$Spaces$Members { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), @@ -755,7 +755,7 @@ export class Resource$Spaces$Members { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{parent}/members') + url: (rootUrl + '/v1/{+parent}/members') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -822,7 +822,7 @@ export class Resource$Spaces$Messages { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{parent}/messages') + url: (rootUrl + '/v1/{+parent}/messages') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -873,7 +873,7 @@ export class Resource$Spaces$Messages { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE' }, options), @@ -923,7 +923,7 @@ export class Resource$Spaces$Messages { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), @@ -977,7 +977,7 @@ export class Resource$Spaces$Messages { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PUT' }, options), diff --git a/src/apis/classroom/v1.ts b/src/apis/classroom/v1.ts index 97e9ef4c34..eaa15df6cc 100644 --- a/src/apis/classroom/v1.ts +++ b/src/apis/classroom/v1.ts @@ -490,7 +490,8 @@ export interface Schema$Date { */ day: number; /** - * Month of year. Must be from 1 to 12. + * Month of year. Must be from 1 to 12, or 0 if specifying a date without a + * month. */ month: number; /** @@ -540,9 +541,9 @@ export interface Schema$DriveFolder { /** * 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 `{}`. + * 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 {} /** @@ -1506,9 +1507,9 @@ export class Resource$Courses { * classroom.courses.list * @desc Returns a list of courses that the requesting user is permitted to * view, restricted to those that match the request. Returned courses are - * ordered by creation time, with the most recently created coming first. - * This method returns the following error codes: * `PERMISSION_DENIED` for - * access errors. * `INVALID_ARGUMENT` if the query argument is malformed. * + * ordered by creation time, with the most recently created coming first. This + * method returns the following error codes: * `PERMISSION_DENIED` for access + * errors. * `INVALID_ARGUMENT` if the query argument is malformed. * * `NOT_FOUND` if any users specified in the query arguments do not exist. * @alias classroom.courses.list * @memberOf! () @@ -1695,8 +1696,8 @@ export class Resource$Courses$Aliases { * to create the alias or for access errors. * `NOT_FOUND` if the course does * not exist. * `ALREADY_EXISTS` if the alias already exists. * * `FAILED_PRECONDITION` if the alias requested does not make sense for the - * requesting user or course (for example, if a user not in a domain - * attempts to access a domain-scoped alias). + * requesting user or course (for example, if a user not in a domain attempts + * to access a domain-scoped alias). * @alias classroom.courses.aliases.create * @memberOf! () * @@ -3000,9 +3001,9 @@ export class Resource$Courses$Coursework$Studentsubmissions { * @desc Returns a student submission. Returning a student submission * transfers ownership of attached Drive files to the student and may also * update the submission state. Unlike the Classroom application, returning a - * student submission does not set assignedGrade to the draftGrade value. - * Only a teacher of the course that contains the requested student submission - * may call this method. This request must be made by the Developer Console + * student submission does not set assignedGrade to the draftGrade value. Only + * a teacher of the course that contains the requested student submission may + * call this method. This request must be made by the Developer Console * project of the [OAuth client * ID](https://support.google.com/cloud/answer/6158849) used to create the * corresponding course work item. This method returns the following error @@ -3392,14 +3393,13 @@ export class Resource$Courses$Teachers { /** * classroom.courses.teachers.create * @desc Creates a teacher of a course. This method returns the following - * error codes: * `PERMISSION_DENIED` if the requesting user is not - * permitted to create teachers in this course or for access errors. * - * `NOT_FOUND` if the requested course ID does not exist. * - * `FAILED_PRECONDITION` if the requested user's account is disabled, for the - * following request errors: * CourseMemberLimitReached * - * CourseNotModifiable * CourseTeacherLimitReached * - * UserGroupsMembershipLimitReached * `ALREADY_EXISTS` if the user is already - * a teacher or student in the course. + * error codes: * `PERMISSION_DENIED` if the requesting user is not permitted + * to create teachers in this course or for access errors. * `NOT_FOUND` if + * the requested course ID does not exist. * `FAILED_PRECONDITION` if the + * requested user's account is disabled, for the following request errors: * + * CourseMemberLimitReached * CourseNotModifiable * + * CourseTeacherLimitReached * UserGroupsMembershipLimitReached * + * `ALREADY_EXISTS` if the user is already a teacher or student in the course. * @alias classroom.courses.teachers.create * @memberOf! () * @@ -4079,11 +4079,11 @@ export class Resource$Registrations { * notifications from the requested field; or * the credential provided * does not include the appropriate scope for the requested feed. * * another access error is encountered. * `INVALID_ARGUMENT` if: * no - * `destination` is specified, or the specified `destination` is not - * valid; or * no `feed` is specified, or the specified `feed` is not - * valid. * `NOT_FOUND` if: * the specified `feed` cannot be located, or - * the requesting user does not have permission to determine whether or - * not it exists; or * the specified `destination` cannot be located, or + * `destination` is specified, or the specified `destination` is not valid; or + * * no `feed` is specified, or the specified `feed` is not valid. * + * `NOT_FOUND` if: * the specified `feed` cannot be located, or the + * requesting user does not have permission to determine whether or not + * it exists; or * the specified `destination` cannot be located, or * Classroom has not been granted permission to publish to it. * @alias classroom.registrations.create * @memberOf! () @@ -4279,22 +4279,21 @@ export class Resource$Userprofiles$Guardianinvitations { * must have the `student_id` and `invited_email_address` fields set. Failing * to set these fields, or setting any other fields in the request, will * result in an error. This method returns the following error codes: * - * `PERMISSION_DENIED` if the current user does not have permission to - * manage guardians, if the guardian in question has already rejected too - * many requests for that student, if guardians are not enabled for the - * domain in question, or for other access errors. * `RESOURCE_EXHAUSTED` if - * the student or guardian has exceeded the guardian link limit. * - * `INVALID_ARGUMENT` if the guardian email address is not valid (for - * example, if it is too long), or if the format of the student ID provided - * cannot be recognized (it is not an email address, nor a `user_id` from - * this API). This error will also be returned if read-only fields are set, - * or if the `state` field is set to to a value other than `PENDING`. * - * `NOT_FOUND` if the student ID provided is a valid student ID, but - * Classroom has no record of that student. * `ALREADY_EXISTS` if there is - * already a pending guardian invitation for the student and - * `invited_email_address` provided, or if the provided - * `invited_email_address` matches the Google account of an existing - * `Guardian` for this user. + * `PERMISSION_DENIED` if the current user does not have permission to manage + * guardians, if the guardian in question has already rejected too many + * requests for that student, if guardians are not enabled for the domain in + * question, or for other access errors. * `RESOURCE_EXHAUSTED` if the student + * or guardian has exceeded the guardian link limit. * `INVALID_ARGUMENT` if + * the guardian email address is not valid (for example, if it is too long), + * or if the format of the student ID provided cannot be recognized (it is + * not an email address, nor a `user_id` from this API). This error will + * also be returned if read-only fields are set, or if the `state` field is + * set to to a value other than `PENDING`. * `NOT_FOUND` if the student ID + * provided is a valid student ID, but Classroom has no record of that + * student. * `ALREADY_EXISTS` if there is already a pending guardian + * invitation for the student and `invited_email_address` provided, or if + * the provided `invited_email_address` matches the Google account of an + * existing `Guardian` for this user. * @alias classroom.userProfiles.guardianInvitations.create * @memberOf! () * @@ -4420,9 +4419,9 @@ export class Resource$Userprofiles$Guardianinvitations { * invitations for that student, if `"-"` is specified as the `student_id` * and the user is not a domain administrator, if guardians are not enabled * for the domain in question, or for other access errors. * - * `INVALID_ARGUMENT` if a `student_id` is specified, but its format cannot - * be recognized (it is not an email address, nor a `student_id` from the - * API, nor the literal string `me`). May also be returned if an invalid + * `INVALID_ARGUMENT` if a `student_id` is specified, but its format cannot be + * recognized (it is not an email address, nor a `student_id` from the API, + * nor the literal string `me`). May also be returned if an invalid * `page_token` or `state` is provided. * `NOT_FOUND` if a `student_id` is * specified, and its format can be recognized, but Classroom has no record * of that student. @@ -4710,8 +4709,8 @@ export class Resource$Userprofiles$Guardians { * for the domain in question, if the `invited_email_address` filter is set * by a user who is not a domain administrator, or for other access errors. * * `INVALID_ARGUMENT` if a `student_id` is specified, but its format cannot - * be recognized (it is not an email address, nor a `student_id` from the - * API, nor the literal string `me`). May also be returned if an invalid + * be recognized (it is not an email address, nor a `student_id` from the API, + * nor the literal string `me`). May also be returned if an invalid * `page_token` is provided. * `NOT_FOUND` if a `student_id` is specified, and * its format can be recognized, but Classroom has no record of that * student. diff --git a/src/apis/cloudbilling/v1.ts b/src/apis/cloudbilling/v1.ts index fec1eab28b..7f849a05ba 100644 --- a/src/apis/cloudbilling/v1.ts +++ b/src/apis/cloudbilling/v1.ts @@ -90,22 +90,19 @@ export interface Schema$AggregationInfo { * each AuditConfig are enabled, and the exempted_members in each AuditLogConfig * are exempted. Example Policy with multiple AuditConfigs: { * "audit_configs": [ { "service": - * "allServices" "audit_log_configs": [ - * { "log_type": "DATA_READ", - * "exempted_members": [ + * "allServices" "audit_log_configs": [ { + * "log_type": "DATA_READ", "exempted_members": [ * "user:foo@gmail.com" ] }, { * "log_type": "DATA_WRITE", }, { - * "log_type": "ADMIN_READ", } ] - * }, { "service": - * "fooservice.googleapis.com" - * "audit_log_configs": [ { - * "log_type": "DATA_READ", }, { - * "log_type": "DATA_WRITE", - * "exempted_members": [ - * "user:bar@gmail.com" ] } ] - * } ] } For fooservice, this policy enables DATA_READ, DATA_WRITE - * and ADMIN_READ logging. It also exempts foo@gmail.com from DATA_READ logging, - * and bar@gmail.com from DATA_WRITE logging. + * "log_type": "ADMIN_READ", } ] }, { + * "service": "fooservice.googleapis.com" + * "audit_log_configs": [ { "log_type": + * "DATA_READ", }, { "log_type": + * "DATA_WRITE", "exempted_members": [ + * "user:bar@gmail.com" ] } ] } ] + * } For fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ + * logging. It also exempts foo@gmail.com from DATA_READ logging, and + * bar@gmail.com from DATA_WRITE logging. */ export interface Schema$AuditConfig { /** @@ -314,15 +311,14 @@ export interface Schema$Money { * of a list of `bindings`. A `Binding` binds a list of `members` to a `role`, * where the members can be user accounts, Google groups, Google domains, and * service accounts. A `role` is a named list of permissions defined by IAM. - * **Example** { "bindings": [ { - * "role": "roles/owner", "members": [ - * "user:mike@example.com", - * "group:admins@example.com", + * **Example** { "bindings": [ { "role": + * "roles/owner", "members": [ + * "user:mike@example.com", "group:admins@example.com", * "domain:google.com", - * "serviceAccount:my-other-app@appspot.gserviceaccount.com", - * ] }, { "role": "roles/viewer", - * "members": ["user:sean@example.com"] } ] - * } For a description of IAM and its features, see the [IAM developer's + * "serviceAccount:my-other-app@appspot.gserviceaccount.com", ] }, { + * "role": "roles/viewer", "members": + * ["user:sean@example.com"] } ] } For a + * description of IAM and its features, see the [IAM developer's * guide](https://cloud.google.com/iam/docs). */ export interface Schema$Policy { @@ -749,7 +745,7 @@ export class Resource$Billingaccounts { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), @@ -805,7 +801,7 @@ export class Resource$Billingaccounts { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{resource}:getIamPolicy') + url: (rootUrl + '/v1/{+resource}:getIamPolicy') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -991,7 +987,7 @@ export class Resource$Billingaccounts { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH' }, options), @@ -1048,7 +1044,7 @@ export class Resource$Billingaccounts { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{resource}:setIamPolicy') + url: (rootUrl + '/v1/{+resource}:setIamPolicy') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -1109,7 +1105,7 @@ export class Resource$Billingaccounts { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{resource}:testIamPermissions') + url: (rootUrl + '/v1/{+resource}:testIamPermissions') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -1251,8 +1247,8 @@ export class Resource$Billingaccounts$Projects { const parameters = { options: Object.assign( { - url: - (rootUrl + '/v1/{name}/projects').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}/projects') + .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), @@ -1376,7 +1372,7 @@ export class Resource$Projects { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}/billingInfo') + url: (rootUrl + '/v1/{+name}/billingInfo') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -1513,7 +1509,7 @@ export class Resource$Projects { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}/billingInfo') + url: (rootUrl + '/v1/{+name}/billingInfo') .replace(/([^:]\/)\/+/g, '$1'), method: 'PUT' }, @@ -1779,7 +1775,7 @@ export class Resource$Services$Skus { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{parent}/skus').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+parent}/skus').replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), diff --git a/src/apis/cloudbuild/v1.ts b/src/apis/cloudbuild/v1.ts index 11a20ccbc0..0bc0c9e8fd 100644 --- a/src/apis/cloudbuild/v1.ts +++ b/src/apis/cloudbuild/v1.ts @@ -82,6 +82,26 @@ export interface Schema$ArtifactObjects { * Path globs used to match files in the build's workspace. */ paths: string[]; + /** + * Stores timing information for pushing all artifact objects. @OutputOnly + */ + timing: Schema$TimeSpan; +} +/** + * An artifact that was uploaded during a build. This is a single record in the + * artifact manifest JSON file. + */ +export interface Schema$ArtifactResult { + /** + * The file hash of the artifact. + */ + fileHash: Schema$FileHashes[]; + /** + * The path of an artifact in a Google Cloud Storage bucket, with the + * generation number. For example, + * `gs://mybucket/path/to/output.jar#generation`. + */ + location: string; } /** * Artifacts produced by a build that should be uploaded upon successful @@ -432,9 +452,9 @@ 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 `{}`. + * 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 {} /** @@ -676,15 +696,15 @@ export interface Schema$SourceProvenance { * 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. + * 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 { /** @@ -809,7 +829,7 @@ export class Resource$Operations { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, options), @@ -861,7 +881,7 @@ export class Resource$Operations { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), @@ -927,7 +947,7 @@ export class Resource$Operations { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), diff --git a/src/apis/clouddebugger/v2.ts b/src/apis/clouddebugger/v2.ts index d497b3aa11..1669ab1c91 100644 --- a/src/apis/clouddebugger/v2.ts +++ b/src/apis/clouddebugger/v2.ts @@ -305,9 +305,9 @@ export interface Schema$Debuggee { /** * 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 `{}`. + * 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 {} /** @@ -601,48 +601,47 @@ export interface Schema$UpdateActiveBreakpointResponse {} * } // Captured variable 2) A compound object: struct T { int * m1; int m2; }; T x = { 3, 7 }; { // Captured variable * name: "x", type: "T", members { name: - * "m1", value: "3", type: "int" }, - * members { name: "m2", value: "7", type: "int" } - * } 3) A pointer where the pointee was captured: T x = { 3, 7 }; T* p - * = &x; { // Captured variable name: "p", - * type: "T*", value: "0x00500500", members - * { name: "m1", value: "3", type: "int" }, - * members { name: "m2", value: "7", type: "int" } - * } 4) A pointer where the pointee was not captured: T* p = new T; { - * // Captured variable name: "p", type: - * "T*", value: "0x00400400" status { - * is_error: true, description { format: "unavailable" } } } The - * status should describe the reason for the missing value, such as - * `<optimized out>`, `<inaccessible>`, `<pointers limit - * reached>`. Note that a null pointer should not have members. 5) An - * unnamed value: int* p = new int(7); { // Captured variable - * name: "p", value: "0x00500500", type: - * "int*", members { value: "7", type: - * "int" } } 6) An unnamed pointer where the pointee was not - * captured: int* p = new int(7); int** pp = &p; { // - * Captured variable name: "pp", value: + * "m1", value: "3", type: "int" }, members { + * name: "m2", value: "7", type: "int" } } 3) + * A pointer where the pointee was captured: T x = { 3, 7 }; T* p = + * &x; { // Captured variable name: "p", type: + * "T*", value: "0x00500500", members { + * name: "m1", value: "3", type: "int" }, members + * { name: "m2", value: "7", type: "int" } } + * 4) A pointer where the pointee was not captured: T* p = new T; { // + * Captured variable name: "p", type: "T*", + * value: "0x00400400" status { is_error: true, description { + * format: "unavailable" } } } The status should describe the + * reason for the missing value, such as `<optimized out>`, + * `<inaccessible>`, `<pointers limit reached>`. Note that a null + * pointer should not have members. 5) An unnamed value: int* p = new + * int(7); { // Captured variable name: "p", value: + * "0x00500500", type: "int*", members { + * value: "7", type: "int" } } 6) An unnamed pointer where + * the pointee was not captured: int* p = new int(7); int** pp = + * &p; { // Captured variable name: "pp", value: * "0x00500500", type: "int**", members { - * value: "0x00400400", type: "int*" - * status { is_error: true, description: { - * format: "unavailable" } } } } } To - * optimize computation, memory and network traffic, variables that repeat in - * the output multiple times can be stored once in a shared variable table and - * be referenced using the `var_table_index` field. The variables stored in the + * value: "0x00400400", type: "int*" status { + * is_error: true, description: { format: + * "unavailable" } } } } } To optimize + * computation, memory and network traffic, variables that repeat in the output + * multiple times can be stored once in a shared variable table and be + * referenced using the `var_table_index` field. The variables stored in the * shared table are nameless and are essentially a partition of the complete * variable. To reconstruct the complete variable, merge the referencing * variable with the referenced variable. When using the shared variable table, * the following variables: T x = { 3, 7 }; T* p = &x; T& r - * = x; { name: "x", var_table_index: 3, type: "T" } - * // Captured variables { name: "p", value - * "0x00500500", type="T*", var_table_index: 3 } { name: - * "r", type="T&", var_table_index: 3 } { // - * Shared variable table entry #3: members { name: "m1", - * value: "3", type: "int" }, members { name: - * "m2", value: "7", type: "int" } } Note - * that the pointer address is stored with the referencing variable and not with - * the referenced variable. This allows the referenced variable to be shared - * between pointers and references. The type field is optional. The debugger - * agent may or may not support it. + * = x; { name: "x", var_table_index: 3, type: "T" } // + * Captured variables { name: "p", value "0x00500500", + * type="T*", var_table_index: 3 } { name: "r", + * type="T&", var_table_index: 3 } { // Shared variable + * table entry #3: members { name: "m1", value: "3", + * type: "int" }, members { name: "m2", value: + * "7", type: "int" } } Note that the pointer address + * is stored with the referencing variable and not with the referenced variable. + * This allows the referenced variable to be shared between pointers and + * references. The type field is optional. The debugger agent may or may not + * support it. */ export interface Schema$Variable { /** @@ -663,8 +662,8 @@ export interface Schema$Variable { * variable value and members will be unset. Example of error message applied * to name: `Invalid expression syntax`. Example of information message * applied to value: `Not captured`. Examples of error message applied to - * value: * `Malformed string`, * `Field f not found in class C` * - * `Null pointer dereference` + * value: * `Malformed string`, * `Field f not found in class C` * `Null + * pointer dereference` */ status: Schema$StatusMessage; /** diff --git a/src/apis/clouderrorreporting/v1beta1.ts b/src/apis/clouderrorreporting/v1beta1.ts index bb372ed46d..6f6c783492 100644 --- a/src/apis/clouderrorreporting/v1beta1.ts +++ b/src/apis/clouderrorreporting/v1beta1.ts @@ -478,7 +478,7 @@ export class Resource$Projects { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1beta1/{projectName}/events') + url: (rootUrl + '/v1beta1/{+projectName}/events') .replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE' }, @@ -551,7 +551,7 @@ export class Resource$Projects$Events { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1beta1/{projectName}/events') + url: (rootUrl + '/v1beta1/{+projectName}/events') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -614,7 +614,7 @@ export class Resource$Projects$Events { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1beta1/{projectName}/events:report') + url: (rootUrl + '/v1beta1/{+projectName}/events:report') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -678,7 +678,7 @@ export class Resource$Projects$Groups { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1beta1/{groupName}') + url: (rootUrl + '/v1beta1/{+groupName}') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -735,7 +735,7 @@ export class Resource$Projects$Groups { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1beta1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PUT' }, options), @@ -814,7 +814,7 @@ export class Resource$Projects$Groupstats { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1beta1/{projectName}/groupStats') + url: (rootUrl + '/v1beta1/{+projectName}/groupStats') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, diff --git a/src/apis/cloudfunctions/v1.ts b/src/apis/cloudfunctions/v1.ts index 32b6eabf41..d660e9060d 100644 --- a/src/apis/cloudfunctions/v1.ts +++ b/src/apis/cloudfunctions/v1.ts @@ -197,12 +197,12 @@ export interface Schema$EventTrigger { * support it. Google Cloud Functions only allows EventTriggers to be * deployed that observe resources in the same project as the * `CloudFunction`. 2. The resource type must match the pattern expected for - * an `event_type`. For example, an `EventTrigger` that has an - * `event_type` of "google.pubsub.topic.publish" should have a - * resource that matches Google Cloud Pub/Sub topics. Additionally, some - * services may support short names when creating an `EventTrigger`. These - * will always be returned in the normalized "long" format. See - * each *service's* documentation for supported formats. + * an `event_type`. For example, an `EventTrigger` that has an `event_type` + * of "google.pubsub.topic.publish" should have a resource that + * matches Google Cloud Pub/Sub topics. Additionally, some services may + * support short names when creating an `EventTrigger`. These will always be + * returned in the normalized "long" format. See each + * *service's* documentation for supported formats. */ resource: string; /** @@ -482,15 +482,15 @@ export interface Schema$SourceRepository { * 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. + * 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 { /** @@ -557,7 +557,7 @@ export class Resource$Operations { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), @@ -708,7 +708,7 @@ export class Resource$Projects$Locations { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}/locations') + url: (rootUrl + '/v1/{+name}/locations') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -775,7 +775,7 @@ export class Resource$Projects$Locations$Functions { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}:call').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:call').replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, options), @@ -830,7 +830,7 @@ export class Resource$Projects$Locations$Functions { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{location}/functions') + url: (rootUrl + '/v1/{+location}/functions') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -885,7 +885,7 @@ export class Resource$Projects$Locations$Functions { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE' }, options), @@ -945,7 +945,7 @@ export class Resource$Projects$Locations$Functions { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}:generateDownloadUrl') + url: (rootUrl + '/v1/{+name}:generateDownloadUrl') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -1012,7 +1012,7 @@ export class Resource$Projects$Locations$Functions { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{parent}/functions:generateUploadUrl') + url: (rootUrl + '/v1/{+parent}/functions:generateUploadUrl') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -1064,7 +1064,7 @@ export class Resource$Projects$Locations$Functions { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), @@ -1121,7 +1121,7 @@ export class Resource$Projects$Locations$Functions { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{parent}/functions') + url: (rootUrl + '/v1/{+parent}/functions') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -1176,7 +1176,7 @@ export class Resource$Projects$Locations$Functions { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH' }, options), diff --git a/src/apis/cloudfunctions/v1beta2.ts b/src/apis/cloudfunctions/v1beta2.ts index 0877a20eba..268a9433e7 100644 --- a/src/apis/cloudfunctions/v1beta2.ts +++ b/src/apis/cloudfunctions/v1beta2.ts @@ -503,15 +503,15 @@ export interface Schema$SourceRepository { * 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. + * 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 { /** @@ -578,7 +578,7 @@ export class Resource$Operations { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1beta2/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), @@ -730,7 +730,7 @@ export class Resource$Projects$Locations { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1beta2/{name}/locations') + url: (rootUrl + '/v1beta2/{+name}/locations') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -797,7 +797,7 @@ export class Resource$Projects$Locations$Functions { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1beta2/{name}:call') + url: (rootUrl + '/v1beta2/{+name}:call') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -853,7 +853,7 @@ export class Resource$Projects$Locations$Functions { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1beta2/{location}/functions') + url: (rootUrl + '/v1beta2/{+location}/functions') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -908,7 +908,7 @@ export class Resource$Projects$Locations$Functions { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1beta2/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE' }, options), @@ -968,7 +968,7 @@ export class Resource$Projects$Locations$Functions { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1beta2/{name}:generateDownloadUrl') + url: (rootUrl + '/v1beta2/{+name}:generateDownloadUrl') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -1035,7 +1035,7 @@ export class Resource$Projects$Locations$Functions { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1beta2/{parent}/functions:generateUploadUrl') + url: (rootUrl + '/v1beta2/{+parent}/functions:generateUploadUrl') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -1087,7 +1087,7 @@ export class Resource$Projects$Locations$Functions { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1beta2/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), @@ -1144,7 +1144,7 @@ export class Resource$Projects$Locations$Functions { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1beta2/{location}/functions') + url: (rootUrl + '/v1beta2/{+location}/functions') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -1198,7 +1198,7 @@ export class Resource$Projects$Locations$Functions { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1beta2/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PUT' }, options), diff --git a/src/apis/cloudiot/v1.ts b/src/apis/cloudiot/v1.ts index f978ee1c3b..99292fb8ba 100644 --- a/src/apis/cloudiot/v1.ts +++ b/src/apis/cloudiot/v1.ts @@ -327,9 +327,9 @@ export interface Schema$DeviceState { /** * 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 `{}`. + * 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 {} /** @@ -445,15 +445,14 @@ export interface Schema$MqttConfig { * of a list of `bindings`. A `Binding` binds a list of `members` to a `role`, * where the members can be user accounts, Google groups, Google domains, and * service accounts. A `role` is a named list of permissions defined by IAM. - * **Example** { "bindings": [ { - * "role": "roles/owner", "members": [ - * "user:mike@example.com", - * "group:admins@example.com", + * **Example** { "bindings": [ { "role": + * "roles/owner", "members": [ + * "user:mike@example.com", "group:admins@example.com", * "domain:google.com", - * "serviceAccount:my-other-app@appspot.gserviceaccount.com", - * ] }, { "role": "roles/viewer", - * "members": ["user:sean@example.com"] } ] - * } For a description of IAM and its features, see the [IAM developer's + * "serviceAccount:my-other-app@appspot.gserviceaccount.com", ] }, { + * "role": "roles/viewer", "members": + * ["user:sean@example.com"] } ] } For a + * description of IAM and its features, see the [IAM developer's * guide](https://cloud.google.com/iam/docs). */ export interface Schema$Policy { @@ -564,15 +563,15 @@ export interface Schema$StateNotificationConfig { * 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. + * 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 { /** @@ -720,7 +719,7 @@ export class Resource$Projects$Locations$Registries { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{parent}/registries') + url: (rootUrl + '/v1/{+parent}/registries') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -771,7 +770,7 @@ export class Resource$Projects$Locations$Registries { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE' }, options), @@ -822,7 +821,7 @@ export class Resource$Projects$Locations$Registries { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), @@ -875,7 +874,7 @@ export class Resource$Projects$Locations$Registries { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{resource}:getIamPolicy') + url: (rootUrl + '/v1/{+resource}:getIamPolicy') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -934,7 +933,7 @@ export class Resource$Projects$Locations$Registries { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{parent}/registries') + url: (rootUrl + '/v1/{+parent}/registries') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -991,7 +990,7 @@ export class Resource$Projects$Locations$Registries { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH' }, options), @@ -1044,7 +1043,7 @@ export class Resource$Projects$Locations$Registries { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{resource}:setIamPolicy') + url: (rootUrl + '/v1/{+resource}:setIamPolicy') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -1103,7 +1102,7 @@ export class Resource$Projects$Locations$Registries { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{resource}:testIamPermissions') + url: (rootUrl + '/v1/{+resource}:testIamPermissions') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -1172,7 +1171,7 @@ export class Resource$Projects$Locations$Registries$Devices { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{parent}/devices') + url: (rootUrl + '/v1/{+parent}/devices') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -1223,7 +1222,7 @@ export class Resource$Projects$Locations$Registries$Devices { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE' }, options), @@ -1272,7 +1271,7 @@ export class Resource$Projects$Locations$Registries$Devices { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), @@ -1330,7 +1329,7 @@ export class Resource$Projects$Locations$Registries$Devices { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{parent}/devices') + url: (rootUrl + '/v1/{+parent}/devices') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -1388,7 +1387,7 @@ export class Resource$Projects$Locations$Registries$Devices { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}:modifyCloudToDeviceConfig') + url: (rootUrl + '/v1/{+name}:modifyCloudToDeviceConfig') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -1441,7 +1440,7 @@ export class Resource$Projects$Locations$Registries$Devices { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH' }, options), @@ -1510,7 +1509,7 @@ export class Resource$Projects$Locations$Registries$Devices$Configversions { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}/configVersions') + url: (rootUrl + '/v1/{+name}/configVersions') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -1582,7 +1581,7 @@ export class Resource$Projects$Locations$Registries$Devices$States { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}/states').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}/states').replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), diff --git a/src/apis/cloudkms/v1.ts b/src/apis/cloudkms/v1.ts index 5f25215704..d5ad196c9a 100644 --- a/src/apis/cloudkms/v1.ts +++ b/src/apis/cloudkms/v1.ts @@ -73,22 +73,19 @@ export class Cloudkms { * each AuditConfig are enabled, and the exempted_members in each AuditLogConfig * are exempted. Example Policy with multiple AuditConfigs: { * "audit_configs": [ { "service": - * "allServices" "audit_log_configs": [ - * { "log_type": "DATA_READ", - * "exempted_members": [ + * "allServices" "audit_log_configs": [ { + * "log_type": "DATA_READ", "exempted_members": [ * "user:foo@gmail.com" ] }, { * "log_type": "DATA_WRITE", }, { - * "log_type": "ADMIN_READ", } ] - * }, { "service": - * "fooservice.googleapis.com" - * "audit_log_configs": [ { - * "log_type": "DATA_READ", }, { - * "log_type": "DATA_WRITE", - * "exempted_members": [ - * "user:bar@gmail.com" ] } ] - * } ] } For fooservice, this policy enables DATA_READ, DATA_WRITE - * and ADMIN_READ logging. It also exempts foo@gmail.com from DATA_READ logging, - * and bar@gmail.com from DATA_WRITE logging. + * "log_type": "ADMIN_READ", } ] }, { + * "service": "fooservice.googleapis.com" + * "audit_log_configs": [ { "log_type": + * "DATA_READ", }, { "log_type": + * "DATA_WRITE", "exempted_members": [ + * "user:bar@gmail.com" ] } ] } ] + * } For fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ + * logging. It also exempts foo@gmail.com from DATA_READ logging, and + * bar@gmail.com from DATA_WRITE logging. */ export interface Schema$AuditConfig { /** @@ -178,8 +175,8 @@ export interface Schema$CryptoKey { nextRotationTime: string; /** * Output only. A copy of the "primary" CryptoKeyVersion that will - * be used by Encrypt when this CryptoKey is given in EncryptRequest.name. - * The CryptoKey's primary version can be updated via + * be used by Encrypt when this CryptoKey is given in EncryptRequest.name. The + * CryptoKey's primary version can be updated via * UpdateCryptoKeyPrimaryVersion. */ primary: Schema$CryptoKeyVersion; @@ -402,15 +399,14 @@ export interface Schema$Location { * of a list of `bindings`. A `Binding` binds a list of `members` to a `role`, * where the members can be user accounts, Google groups, Google domains, and * service accounts. A `role` is a named list of permissions defined by IAM. - * **Example** { "bindings": [ { - * "role": "roles/owner", "members": [ - * "user:mike@example.com", - * "group:admins@example.com", + * **Example** { "bindings": [ { "role": + * "roles/owner", "members": [ + * "user:mike@example.com", "group:admins@example.com", * "domain:google.com", - * "serviceAccount:my-other-app@appspot.gserviceaccount.com", - * ] }, { "role": "roles/viewer", - * "members": ["user:sean@example.com"] } ] - * } For a description of IAM and its features, see the [IAM developer's + * "serviceAccount:my-other-app@appspot.gserviceaccount.com", ] }, { + * "role": "roles/viewer", "members": + * ["user:sean@example.com"] } ] } For a + * description of IAM and its features, see the [IAM developer's * guide](https://cloud.google.com/iam/docs). */ export interface Schema$Policy { @@ -554,7 +550,7 @@ export class Resource$Projects$Locations { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), @@ -612,7 +608,7 @@ export class Resource$Projects$Locations { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}/locations') + url: (rootUrl + '/v1/{+name}/locations') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -680,7 +676,7 @@ export class Resource$Projects$Locations$Keyrings { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{parent}/keyRings') + url: (rootUrl + '/v1/{+parent}/keyRings') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -731,7 +727,7 @@ export class Resource$Projects$Locations$Keyrings { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), @@ -783,7 +779,7 @@ export class Resource$Projects$Locations$Keyrings { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{resource}:getIamPolicy') + url: (rootUrl + '/v1/{+resource}:getIamPolicy') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -839,7 +835,7 @@ export class Resource$Projects$Locations$Keyrings { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{parent}/keyRings') + url: (rootUrl + '/v1/{+parent}/keyRings') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -893,7 +889,7 @@ export class Resource$Projects$Locations$Keyrings { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{resource}:setIamPolicy') + url: (rootUrl + '/v1/{+resource}:setIamPolicy') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -954,7 +950,7 @@ export class Resource$Projects$Locations$Keyrings { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{resource}:testIamPermissions') + url: (rootUrl + '/v1/{+resource}:testIamPermissions') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -1026,7 +1022,7 @@ export class Resource$Projects$Locations$Keyrings$Cryptokeys { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{parent}/cryptoKeys') + url: (rootUrl + '/v1/{+parent}/cryptoKeys') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -1081,7 +1077,8 @@ export class Resource$Projects$Locations$Keyrings$Cryptokeys { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}:decrypt').replace(/([^:]\/)\/+/g, '$1'), + url: + (rootUrl + '/v1/{+name}:decrypt').replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, options), @@ -1135,7 +1132,8 @@ export class Resource$Projects$Locations$Keyrings$Cryptokeys { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}:encrypt').replace(/([^:]\/)\/+/g, '$1'), + url: + (rootUrl + '/v1/{+name}:encrypt').replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, options), @@ -1186,7 +1184,7 @@ export class Resource$Projects$Locations$Keyrings$Cryptokeys { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), @@ -1238,7 +1236,7 @@ export class Resource$Projects$Locations$Keyrings$Cryptokeys { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{resource}:getIamPolicy') + url: (rootUrl + '/v1/{+resource}:getIamPolicy') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -1296,7 +1294,7 @@ export class Resource$Projects$Locations$Keyrings$Cryptokeys { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{parent}/cryptoKeys') + url: (rootUrl + '/v1/{+parent}/cryptoKeys') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -1351,7 +1349,7 @@ export class Resource$Projects$Locations$Keyrings$Cryptokeys { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH' }, options), @@ -1404,7 +1402,7 @@ export class Resource$Projects$Locations$Keyrings$Cryptokeys { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{resource}:setIamPolicy') + url: (rootUrl + '/v1/{+resource}:setIamPolicy') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -1465,7 +1463,7 @@ export class Resource$Projects$Locations$Keyrings$Cryptokeys { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{resource}:testIamPermissions') + url: (rootUrl + '/v1/{+resource}:testIamPermissions') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -1520,7 +1518,7 @@ export class Resource$Projects$Locations$Keyrings$Cryptokeys { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}:updatePrimaryVersion') + url: (rootUrl + '/v1/{+name}:updatePrimaryVersion') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -1588,7 +1586,7 @@ export class Resource$Projects$Locations$Keyrings$Cryptokeys$Cryptokeyversions { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{parent}/cryptoKeyVersions') + url: (rootUrl + '/v1/{+parent}/cryptoKeyVersions') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -1649,7 +1647,8 @@ export class Resource$Projects$Locations$Keyrings$Cryptokeys$Cryptokeyversions { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}:destroy').replace(/([^:]\/)\/+/g, '$1'), + url: + (rootUrl + '/v1/{+name}:destroy').replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, options), @@ -1701,7 +1700,7 @@ export class Resource$Projects$Locations$Keyrings$Cryptokeys$Cryptokeyversions { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), @@ -1760,7 +1759,7 @@ export class Resource$Projects$Locations$Keyrings$Cryptokeys$Cryptokeyversions { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{parent}/cryptoKeyVersions') + url: (rootUrl + '/v1/{+parent}/cryptoKeyVersions') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -1820,7 +1819,7 @@ export class Resource$Projects$Locations$Keyrings$Cryptokeys$Cryptokeyversions { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH' }, options), @@ -1877,7 +1876,8 @@ export class Resource$Projects$Locations$Keyrings$Cryptokeys$Cryptokeyversions { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}:restore').replace(/([^:]\/)\/+/g, '$1'), + url: + (rootUrl + '/v1/{+name}:restore').replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, options), diff --git a/src/apis/cloudresourcemanager/v1.ts b/src/apis/cloudresourcemanager/v1.ts index 9064aa2a39..2cdb0e4bd4 100644 --- a/src/apis/cloudresourcemanager/v1.ts +++ b/src/apis/cloudresourcemanager/v1.ts @@ -90,26 +90,23 @@ export interface Schema$Ancestor { * each AuditConfig are enabled, and the exempted_members in each AuditLogConfig * are exempted. Example Policy with multiple AuditConfigs: { * "audit_configs": [ { "service": - * "allServices" "audit_log_configs": [ - * { "log_type": "DATA_READ", - * "exempted_members": [ + * "allServices" "audit_log_configs": [ { + * "log_type": "DATA_READ", "exempted_members": [ * "user:foo@gmail.com" ] }, { * "log_type": "DATA_WRITE", }, { - * "log_type": "ADMIN_READ", } ] - * }, { "service": - * "fooservice.googleapis.com" - * "audit_log_configs": [ { - * "log_type": "DATA_READ", }, { - * "log_type": "DATA_WRITE", - * "exempted_members": [ - * "user:bar@gmail.com" ] } ] - * } ] } For fooservice, this policy enables DATA_READ, DATA_WRITE - * and ADMIN_READ logging. It also exempts foo@gmail.com from DATA_READ logging, - * and bar@gmail.com from DATA_WRITE logging. + * "log_type": "ADMIN_READ", } ] }, { + * "service": "fooservice.googleapis.com" + * "audit_log_configs": [ { "log_type": + * "DATA_READ", }, { "log_type": + * "DATA_WRITE", "exempted_members": [ + * "user:bar@gmail.com" ] } ] } ] + * } For fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ + * logging. It also exempts foo@gmail.com from DATA_READ logging, and + * bar@gmail.com from DATA_WRITE logging. */ export interface Schema$AuditConfig { /** - * The configuration for logging of each type of permission. Next ID: 4 + * The configuration for logging of each type of permission. */ auditLogConfigs: Schema$AuditLogConfig[]; /** @@ -187,23 +184,22 @@ export interface Schema$BooleanPolicy { * this resource has enforced set to `true`, serial port connection * attempts will be refused. - If the `Policy` at this resource is * `RestoreDefault`, serial port connection attempts will be allowed. - - * If no `Policy` is set at this resource or anywhere higher in the - * resource hierarchy, serial port connection attempts will be allowed. - If - * no `Policy` is set at this resource, but one exists higher in the - * resource hierarchy, the behavior is as if the`Policy` were set at this - * resource. The following examples demonstrate the different possible - * layerings: Example 1 (nearest `Constraint` wins): `organizations/foo` - * has a `Policy` with: {enforced: false} `projects/bar` has no `Policy` - * set. The constraint at `projects/bar` and `organizations/foo` will not be - * enforced. Example 2 (enforcement gets replaced): `organizations/foo` has - * a `Policy` with: {enforced: false} `projects/bar` has a `Policy` - * with: {enforced: true} The constraint at `organizations/foo` is not - * enforced. The constraint at `projects/bar` is enforced. Example 3 - * (RestoreDefault): `organizations/foo` has a `Policy` with: {enforced: - * true} `projects/bar` has a `Policy` with: {RestoreDefault: {}} The - * constraint at `organizations/foo` is enforced. The constraint at - * `projects/bar` is not enforced, because `constraint_default` for the - * `Constraint` is `ALLOW`. + * If no `Policy` is set at this resource or anywhere higher in the resource + * hierarchy, serial port connection attempts will be allowed. - If no + * `Policy` is set at this resource, but one exists higher in the resource + * hierarchy, the behavior is as if the`Policy` were set at this resource. + * The following examples demonstrate the different possible layerings: + * Example 1 (nearest `Constraint` wins): `organizations/foo` has a `Policy` + * with: {enforced: false} `projects/bar` has no `Policy` set. The + * constraint at `projects/bar` and `organizations/foo` will not be enforced. + * Example 2 (enforcement gets replaced): `organizations/foo` has a `Policy` + * with: {enforced: false} `projects/bar` has a `Policy` with: + * {enforced: true} The constraint at `organizations/foo` is not enforced. The + * constraint at `projects/bar` is enforced. Example 3 (RestoreDefault): + * `organizations/foo` has a `Policy` with: {enforced: true} + * `projects/bar` has a `Policy` with: {RestoreDefault: {}} The constraint + * at `organizations/foo` is enforced. The constraint at `projects/bar` is not + * enforced, because `constraint_default` for the `Constraint` is `ALLOW`. */ enforced: boolean; } @@ -230,10 +226,10 @@ export interface Schema$ClearOrgPolicyRequest { * setting Policies for `Constraints` at different locations in the * organization's resource hierarchy. Policies are inherited down the * resource hierarchy from higher levels, but can also be overridden. For - * details about the inheritance rules please read about Policies. - * `Constraints` have a default behavior determined by the `constraint_default` - * field, which is the enforcement behavior that is used in the absence of a - * `Policy` being defined or inherited for the resource in question. + * details about the inheritance rules please read about Policies. `Constraints` + * have a default behavior determined by the `constraint_default` field, which + * is the enforcement behavior that is used in the absence of a `Policy` being + * defined or inherited for the resource in question. */ export interface Schema$Constraint { /** @@ -271,9 +267,9 @@ export interface Schema$Constraint { /** * 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 `{}`. + * 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 {} /** @@ -514,8 +510,8 @@ export interface Schema$ListPolicy { * circumstances to keep the configuration simple and understandable. However, * it is possible to set a `Policy` with `allowed_values` set that inherits a * `Policy` with `denied_values` set. In this case, the values that are - * allowed must be in `allowed_values` and not present in `denied_values`. - * For example, suppose you have a `Constraint` + * allowed must be in `allowed_values` and not present in `denied_values`. For + * example, suppose you have a `Constraint` * `constraints/serviceuser.services`, which has a `constraint_type` of * `list_constraint`, and with `constraint_default` set to `ALLOW`. Suppose * that at the Organization level, a `Policy` is applied that restricts the @@ -530,32 +526,32 @@ export interface Schema$ListPolicy { * accepted values at `organizations/foo` are `E1`, `E2`. The accepted values * at `projects/bar` are `E3`, and `E4`. Example 2 (inherited values): * `organizations/foo` has a `Policy` with values: {allowed_values: “E1” - * allowed_values:”E2”} `projects/bar` has a `Policy` with values: - * {value: “E3” value: ”E4” inherit_from_parent: true} The accepted values at + * allowed_values:”E2”} `projects/bar` has a `Policy` with values: {value: + * “E3” value: ”E4” inherit_from_parent: true} The accepted values at * `organizations/foo` are `E1`, `E2`. The accepted values at `projects/bar` * are `E1`, `E2`, `E3`, and `E4`. Example 3 (inheriting both allowed and * denied values): `organizations/foo` has a `Policy` with values: * {allowed_values: "E1" allowed_values: "E2"} * `projects/bar` has a `Policy` with: {denied_values: "E1"} The * accepted values at `organizations/foo` are `E1`, `E2`. The value accepted - * at `projects/bar` is `E2`. Example 4 (RestoreDefault): + * at `projects/bar` is `E2`. Example 4 (RestoreDefault): `organizations/foo` + * has a `Policy` with values: {allowed_values: “E1” allowed_values:”E2”} + * `projects/bar` has a `Policy` with values: {RestoreDefault: {}} The + * accepted values at `organizations/foo` are `E1`, `E2`. The accepted values + * at `projects/bar` are either all or none depending on the value of + * `constraint_default` (if `ALLOW`, all; if `DENY`, none). Example 5 (no + * policy inherits parent policy): `organizations/foo` has no `Policy` set. + * `projects/bar` has no `Policy` set. The accepted values at both levels are + * either all or none depending on the value of `constraint_default` (if + * `ALLOW`, all; if `DENY`, none). Example 6 (ListConstraint allowing all): + * `organizations/foo` has a `Policy` with values: {allowed_values: “E1” + * allowed_values: ”E2”} `projects/bar` has a `Policy` with: {all: + * ALLOW} The accepted values at `organizations/foo` are `E1`, E2`. Any value + * is accepted at `projects/bar`. Example 7 (ListConstraint allowing none): * `organizations/foo` has a `Policy` with values: {allowed_values: “E1” - * allowed_values:”E2”} `projects/bar` has a `Policy` with values: - * {RestoreDefault: {}} The accepted values at `organizations/foo` are `E1`, - * `E2`. The accepted values at `projects/bar` are either all or none - * depending on the value of `constraint_default` (if `ALLOW`, all; if `DENY`, - * none). Example 5 (no policy inherits parent policy): `organizations/foo` - * has no `Policy` set. `projects/bar` has no `Policy` set. The accepted - * values at both levels are either all or none depending on the value of - * `constraint_default` (if `ALLOW`, all; if `DENY`, none). Example 6 - * (ListConstraint allowing all): `organizations/foo` has a `Policy` with - * values: {allowed_values: “E1” allowed_values: ”E2”} `projects/bar` - * has a `Policy` with: {all: ALLOW} The accepted values at - * `organizations/foo` are `E1`, E2`. Any value is accepted at `projects/bar`. - * Example 7 (ListConstraint allowing none): `organizations/foo` has a - * `Policy` with values: {allowed_values: “E1” allowed_values: ”E2”} - * `projects/bar` has a `Policy` with: {all: DENY} The accepted values at - * `organizations/foo` are `E1`, E2`. No value is accepted at `projects/bar`. + * allowed_values: ”E2”} `projects/bar` has a `Policy` with: {all: DENY} + * The accepted values at `organizations/foo` are `E1`, E2`. No value is + * accepted at `projects/bar`. */ inheritFromParent: boolean; /** @@ -728,15 +724,14 @@ export interface Schema$OrgPolicy { * of a list of `bindings`. A `Binding` binds a list of `members` to a `role`, * where the members can be user accounts, Google groups, Google domains, and * service accounts. A `role` is a named list of permissions defined by IAM. - * **Example** { "bindings": [ { - * "role": "roles/owner", "members": [ - * "user:mike@example.com", - * "group:admins@example.com", + * **Example** { "bindings": [ { "role": + * "roles/owner", "members": [ + * "user:mike@example.com", "group:admins@example.com", * "domain:google.com", - * "serviceAccount:my-other-app@appspot.gserviceaccount.com", - * ] }, { "role": "roles/viewer", - * "members": ["user:sean@example.com"] } ] - * } For a description of IAM and its features, see the [IAM developer's + * "serviceAccount:my-other-app@appspot.gserviceaccount.com", ] }, { + * "role": "roles/viewer", "members": + * ["user:sean@example.com"] } ] } For a + * description of IAM and its features, see the [IAM developer's * guide](https://cloud.google.com/iam/docs). */ export interface Schema$Policy { @@ -968,15 +963,15 @@ export interface Schema$SetOrgPolicyRequest { * 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. + * 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 { /** @@ -1123,7 +1118,7 @@ export class Resource$Folders { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{resource}:clearOrgPolicy') + url: (rootUrl + '/v1/{+resource}:clearOrgPolicy') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -1236,7 +1231,7 @@ export class Resource$Folders { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{resource}:getEffectiveOrgPolicy') + url: (rootUrl + '/v1/{+resource}:getEffectiveOrgPolicy') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -1350,7 +1345,7 @@ export class Resource$Folders { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{resource}:getOrgPolicy') + url: (rootUrl + '/v1/{+resource}:getOrgPolicy') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -1482,7 +1477,7 @@ export class Resource$Folders { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{resource}:listAvailableOrgPolicyConstraints') + url: (rootUrl + '/v1/{+resource}:listAvailableOrgPolicyConstraints') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -1611,7 +1606,7 @@ export class Resource$Folders { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{resource}:listOrgPolicies') + url: (rootUrl + '/v1/{+resource}:listOrgPolicies') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -1724,7 +1719,7 @@ export class Resource$Folders { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{resource}:setOrgPolicy') + url: (rootUrl + '/v1/{+resource}:setOrgPolicy') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -1947,7 +1942,7 @@ export class Resource$Liens { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE' }, options), @@ -2185,7 +2180,7 @@ export class Resource$Operations { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), @@ -2302,7 +2297,7 @@ export class Resource$Organizations { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{resource}:clearOrgPolicy') + url: (rootUrl + '/v1/{+resource}:clearOrgPolicy') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -2408,7 +2403,7 @@ export class Resource$Organizations { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), @@ -2521,7 +2516,7 @@ export class Resource$Organizations { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{resource}:getEffectiveOrgPolicy') + url: (rootUrl + '/v1/{+resource}:getEffectiveOrgPolicy') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -2635,7 +2630,7 @@ export class Resource$Organizations { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{resource}:getIamPolicy') + url: (rootUrl + '/v1/{+resource}:getIamPolicy') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -2750,7 +2745,7 @@ export class Resource$Organizations { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{resource}:getOrgPolicy') + url: (rootUrl + '/v1/{+resource}:getOrgPolicy') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -2883,7 +2878,7 @@ export class Resource$Organizations { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{resource}:listAvailableOrgPolicyConstraints') + url: (rootUrl + '/v1/{+resource}:listAvailableOrgPolicyConstraints') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -3014,7 +3009,7 @@ export class Resource$Organizations { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{resource}:listOrgPolicies') + url: (rootUrl + '/v1/{+resource}:listOrgPolicies') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -3258,7 +3253,7 @@ export class Resource$Organizations { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{resource}:setIamPolicy') + url: (rootUrl + '/v1/{+resource}:setIamPolicy') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -3372,7 +3367,7 @@ export class Resource$Organizations { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{resource}:setOrgPolicy') + url: (rootUrl + '/v1/{+resource}:setOrgPolicy') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -3490,7 +3485,7 @@ export class Resource$Organizations { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{resource}:testIamPermissions') + url: (rootUrl + '/v1/{+resource}:testIamPermissions') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -3609,7 +3604,7 @@ export class Resource$Projects { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{resource}:clearOrgPolicy') + url: (rootUrl + '/v1/{+resource}:clearOrgPolicy') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -3631,8 +3626,8 @@ export class Resource$Projects { * cloudresourcemanager.projects.create * @desc Request that a new Project be created. The result is an Operation * which can be used to track the creation process. It is automatically - * deleted after a few hours, so there is no need to call DeleteOperation. - * Our SLO permits Project creation to take up to 30 seconds at the 90th + * deleted after a few hours, so there is no need to call DeleteOperation. Our + * SLO permits Project creation to take up to 30 seconds at the 90th * percentile. As of 2016-08-29, we are observing 6 seconds 50th percentile * latency. 95th percentile latency is around 11 seconds. We recommend polling * at the 5th second with an exponential backoff. Authorization requires the @@ -4169,7 +4164,7 @@ export class Resource$Projects { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{resource}:getEffectiveOrgPolicy') + url: (rootUrl + '/v1/{+resource}:getEffectiveOrgPolicy') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -4397,7 +4392,7 @@ export class Resource$Projects { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{resource}:getOrgPolicy') + url: (rootUrl + '/v1/{+resource}:getOrgPolicy') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -4652,7 +4647,7 @@ export class Resource$Projects { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{resource}:listAvailableOrgPolicyConstraints') + url: (rootUrl + '/v1/{+resource}:listAvailableOrgPolicyConstraints') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -4781,7 +4776,7 @@ export class Resource$Projects { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{resource}:listOrgPolicies') + url: (rootUrl + '/v1/{+resource}:listOrgPolicies') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -5028,7 +5023,7 @@ export class Resource$Projects { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{resource}:setOrgPolicy') + url: (rootUrl + '/v1/{+resource}:setOrgPolicy') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -5048,8 +5043,8 @@ export class Resource$Projects { /** * cloudresourcemanager.projects.testIamPermissions - * @desc Returns permissions that a caller has on the specified Project. - * There are no permissions required for making this API call. + * @desc Returns permissions that a caller has on the specified Project. There + * are no permissions required for making this API call. * @example * * // BEFORE RUNNING: * // --------------- diff --git a/src/apis/cloudresourcemanager/v1beta1.ts b/src/apis/cloudresourcemanager/v1beta1.ts index 47222977bd..99509ebe6e 100644 --- a/src/apis/cloudresourcemanager/v1beta1.ts +++ b/src/apis/cloudresourcemanager/v1beta1.ts @@ -84,26 +84,23 @@ export interface Schema$Ancestor { * each AuditConfig are enabled, and the exempted_members in each AuditLogConfig * are exempted. Example Policy with multiple AuditConfigs: { * "audit_configs": [ { "service": - * "allServices" "audit_log_configs": [ - * { "log_type": "DATA_READ", - * "exempted_members": [ + * "allServices" "audit_log_configs": [ { + * "log_type": "DATA_READ", "exempted_members": [ * "user:foo@gmail.com" ] }, { * "log_type": "DATA_WRITE", }, { - * "log_type": "ADMIN_READ", } ] - * }, { "service": - * "fooservice.googleapis.com" - * "audit_log_configs": [ { - * "log_type": "DATA_READ", }, { - * "log_type": "DATA_WRITE", - * "exempted_members": [ - * "user:bar@gmail.com" ] } ] - * } ] } For fooservice, this policy enables DATA_READ, DATA_WRITE - * and ADMIN_READ logging. It also exempts foo@gmail.com from DATA_READ logging, - * and bar@gmail.com from DATA_WRITE logging. + * "log_type": "ADMIN_READ", } ] }, { + * "service": "fooservice.googleapis.com" + * "audit_log_configs": [ { "log_type": + * "DATA_READ", }, { "log_type": + * "DATA_WRITE", "exempted_members": [ + * "user:bar@gmail.com" ] } ] } ] + * } For fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ + * logging. It also exempts foo@gmail.com from DATA_READ logging, and + * bar@gmail.com from DATA_WRITE logging. */ export interface Schema$AuditConfig { /** - * The configuration for logging of each type of permission. Next ID: 4 + * The configuration for logging of each type of permission. */ auditLogConfigs: Schema$AuditLogConfig[]; /** @@ -163,9 +160,9 @@ export interface Schema$Binding { /** * 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 `{}`. + * 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 {} /** @@ -317,15 +314,14 @@ export interface Schema$OrganizationOwner { * of a list of `bindings`. A `Binding` binds a list of `members` to a `role`, * where the members can be user accounts, Google groups, Google domains, and * service accounts. A `role` is a named list of permissions defined by IAM. - * **Example** { "bindings": [ { - * "role": "roles/owner", "members": [ - * "user:mike@example.com", - * "group:admins@example.com", + * **Example** { "bindings": [ { "role": + * "roles/owner", "members": [ + * "user:mike@example.com", "group:admins@example.com", * "domain:google.com", - * "serviceAccount:my-other-app@appspot.gserviceaccount.com", - * ] }, { "role": "roles/viewer", - * "members": ["user:sean@example.com"] } ] - * } For a description of IAM and its features, see the [IAM developer's + * "serviceAccount:my-other-app@appspot.gserviceaccount.com", ] }, { + * "role": "roles/viewer", "members": + * ["user:sean@example.com"] } ] } For a + * description of IAM and its features, see the [IAM developer's * guide](https://cloud.google.com/iam/docs). */ export interface Schema$Policy { @@ -595,7 +591,7 @@ export class Resource$Organizations { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1beta1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), @@ -706,7 +702,7 @@ export class Resource$Organizations { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1beta1/{resource}:getIamPolicy') + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -942,7 +938,7 @@ export class Resource$Organizations { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1beta1/{resource}:setIamPolicy') + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -1059,7 +1055,7 @@ export class Resource$Organizations { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1beta1/{resource}:testIamPermissions') + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -1175,7 +1171,7 @@ export class Resource$Organizations { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1beta1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PUT' }, options), diff --git a/src/apis/cloudresourcemanager/v2.ts b/src/apis/cloudresourcemanager/v2.ts index fcc79a3a76..6ad5ed0919 100644 --- a/src/apis/cloudresourcemanager/v2.ts +++ b/src/apis/cloudresourcemanager/v2.ts @@ -73,26 +73,23 @@ export class Cloudresourcemanager { * each AuditConfig are enabled, and the exempted_members in each AuditLogConfig * are exempted. Example Policy with multiple AuditConfigs: { * "audit_configs": [ { "service": - * "allServices" "audit_log_configs": [ - * { "log_type": "DATA_READ", - * "exempted_members": [ + * "allServices" "audit_log_configs": [ { + * "log_type": "DATA_READ", "exempted_members": [ * "user:foo@gmail.com" ] }, { * "log_type": "DATA_WRITE", }, { - * "log_type": "ADMIN_READ", } ] - * }, { "service": - * "fooservice.googleapis.com" - * "audit_log_configs": [ { - * "log_type": "DATA_READ", }, { - * "log_type": "DATA_WRITE", - * "exempted_members": [ - * "user:bar@gmail.com" ] } ] - * } ] } For fooservice, this policy enables DATA_READ, DATA_WRITE - * and ADMIN_READ logging. It also exempts foo@gmail.com from DATA_READ logging, - * and bar@gmail.com from DATA_WRITE logging. + * "log_type": "ADMIN_READ", } ] }, { + * "service": "fooservice.googleapis.com" + * "audit_log_configs": [ { "log_type": + * "DATA_READ", }, { "log_type": + * "DATA_WRITE", "exempted_members": [ + * "user:bar@gmail.com" ] } ] } ] + * } For fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ + * logging. It also exempts foo@gmail.com from DATA_READ logging, and + * bar@gmail.com from DATA_WRITE logging. */ export interface Schema$AuditConfig { /** - * The configuration for logging of each type of permission. Next ID: 4 + * The configuration for logging of each type of permission. */ auditLogConfigs: Schema$AuditLogConfig[]; /** @@ -290,15 +287,14 @@ export interface Schema$Operation { * of a list of `bindings`. A `Binding` binds a list of `members` to a `role`, * where the members can be user accounts, Google groups, Google domains, and * service accounts. A `role` is a named list of permissions defined by IAM. - * **Example** { "bindings": [ { - * "role": "roles/owner", "members": [ - * "user:mike@example.com", - * "group:admins@example.com", + * **Example** { "bindings": [ { "role": + * "roles/owner", "members": [ + * "user:mike@example.com", "group:admins@example.com", * "domain:google.com", - * "serviceAccount:my-other-app@appspot.gserviceaccount.com", - * ] }, { "role": "roles/viewer", - * "members": ["user:sean@example.com"] } ] - * } For a description of IAM and its features, see the [IAM developer's + * "serviceAccount:my-other-app@appspot.gserviceaccount.com", ] }, { + * "role": "roles/viewer", "members": + * ["user:sean@example.com"] } ] } For a + * description of IAM and its features, see the [IAM developer's * guide](https://cloud.google.com/iam/docs). */ export interface Schema$Policy { @@ -435,15 +431,15 @@ export interface Schema$SetIamPolicyRequest { * 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. + * 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 { /** @@ -611,7 +607,7 @@ export class Resource$Folders { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE' }, options), @@ -663,7 +659,7 @@ export class Resource$Folders { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), @@ -719,7 +715,7 @@ export class Resource$Folders { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2/{resource}:getIamPolicy') + url: (rootUrl + '/v2/{+resource}:getIamPolicy') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -848,7 +844,7 @@ export class Resource$Folders { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2/{name}:move').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}:move').replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, options), @@ -911,7 +907,7 @@ export class Resource$Folders { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH' }, options), @@ -1026,7 +1022,7 @@ export class Resource$Folders { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2/{resource}:setIamPolicy') + url: (rootUrl + '/v2/{+resource}:setIamPolicy') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -1086,7 +1082,7 @@ export class Resource$Folders { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2/{resource}:testIamPermissions') + url: (rootUrl + '/v2/{+resource}:testIamPermissions') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -1145,8 +1141,8 @@ export class Resource$Folders { const parameters = { options: Object.assign( { - url: - (rootUrl + '/v2/{name}:undelete').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}:undelete') + .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, options), diff --git a/src/apis/cloudresourcemanager/v2beta1.ts b/src/apis/cloudresourcemanager/v2beta1.ts index 9e82cc9ce9..64ceffcdd7 100644 --- a/src/apis/cloudresourcemanager/v2beta1.ts +++ b/src/apis/cloudresourcemanager/v2beta1.ts @@ -73,26 +73,23 @@ export class Cloudresourcemanager { * each AuditConfig are enabled, and the exempted_members in each AuditLogConfig * are exempted. Example Policy with multiple AuditConfigs: { * "audit_configs": [ { "service": - * "allServices" "audit_log_configs": [ - * { "log_type": "DATA_READ", - * "exempted_members": [ + * "allServices" "audit_log_configs": [ { + * "log_type": "DATA_READ", "exempted_members": [ * "user:foo@gmail.com" ] }, { * "log_type": "DATA_WRITE", }, { - * "log_type": "ADMIN_READ", } ] - * }, { "service": - * "fooservice.googleapis.com" - * "audit_log_configs": [ { - * "log_type": "DATA_READ", }, { - * "log_type": "DATA_WRITE", - * "exempted_members": [ - * "user:bar@gmail.com" ] } ] - * } ] } For fooservice, this policy enables DATA_READ, DATA_WRITE - * and ADMIN_READ logging. It also exempts foo@gmail.com from DATA_READ logging, - * and bar@gmail.com from DATA_WRITE logging. + * "log_type": "ADMIN_READ", } ] }, { + * "service": "fooservice.googleapis.com" + * "audit_log_configs": [ { "log_type": + * "DATA_READ", }, { "log_type": + * "DATA_WRITE", "exempted_members": [ + * "user:bar@gmail.com" ] } ] } ] + * } For fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ + * logging. It also exempts foo@gmail.com from DATA_READ logging, and + * bar@gmail.com from DATA_WRITE logging. */ export interface Schema$AuditConfig { /** - * The configuration for logging of each type of permission. Next ID: 4 + * The configuration for logging of each type of permission. */ auditLogConfigs: Schema$AuditLogConfig[]; /** @@ -290,15 +287,14 @@ export interface Schema$Operation { * of a list of `bindings`. A `Binding` binds a list of `members` to a `role`, * where the members can be user accounts, Google groups, Google domains, and * service accounts. A `role` is a named list of permissions defined by IAM. - * **Example** { "bindings": [ { - * "role": "roles/owner", "members": [ - * "user:mike@example.com", - * "group:admins@example.com", + * **Example** { "bindings": [ { "role": + * "roles/owner", "members": [ + * "user:mike@example.com", "group:admins@example.com", * "domain:google.com", - * "serviceAccount:my-other-app@appspot.gserviceaccount.com", - * ] }, { "role": "roles/viewer", - * "members": ["user:sean@example.com"] } ] - * } For a description of IAM and its features, see the [IAM developer's + * "serviceAccount:my-other-app@appspot.gserviceaccount.com", ] }, { + * "role": "roles/viewer", "members": + * ["user:sean@example.com"] } ] } For a + * description of IAM and its features, see the [IAM developer's * guide](https://cloud.google.com/iam/docs). */ export interface Schema$Policy { @@ -436,15 +432,15 @@ export interface Schema$SetIamPolicyRequest { * 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. + * 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 { /** @@ -612,7 +608,7 @@ export class Resource$Folders { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2beta1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE' }, options), @@ -664,7 +660,7 @@ export class Resource$Folders { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2beta1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), @@ -720,7 +716,7 @@ export class Resource$Folders { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2beta1/{resource}:getIamPolicy') + url: (rootUrl + '/v2beta1/{+resource}:getIamPolicy') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -849,7 +845,7 @@ export class Resource$Folders { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2beta1/{name}:move') + url: (rootUrl + '/v2beta1/{+name}:move') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -913,7 +909,7 @@ export class Resource$Folders { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2beta1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH' }, options), @@ -1029,7 +1025,7 @@ export class Resource$Folders { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2beta1/{resource}:setIamPolicy') + url: (rootUrl + '/v2beta1/{+resource}:setIamPolicy') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -1089,7 +1085,7 @@ export class Resource$Folders { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2beta1/{resource}:testIamPermissions') + url: (rootUrl + '/v2beta1/{+resource}:testIamPermissions') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -1148,7 +1144,7 @@ export class Resource$Folders { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2beta1/{name}:undelete') + url: (rootUrl + '/v2beta1/{+name}:undelete') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, diff --git a/src/apis/cloudshell/v1.ts b/src/apis/cloudshell/v1.ts index f5beb21ba0..bbc2254437 100644 --- a/src/apis/cloudshell/v1.ts +++ b/src/apis/cloudshell/v1.ts @@ -71,9 +71,9 @@ 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 `{}`. + * 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 {} /** @@ -248,15 +248,15 @@ export interface Schema$StartEnvironmentResponse { * 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. + * 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 { /** @@ -330,7 +330,7 @@ export class Resource$Operations { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, options), @@ -383,7 +383,7 @@ export class Resource$Operations { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE' }, options), @@ -435,7 +435,7 @@ export class Resource$Operations { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), @@ -501,7 +501,7 @@ export class Resource$Operations { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), diff --git a/src/apis/cloudshell/v1alpha1.ts b/src/apis/cloudshell/v1alpha1.ts index ab3eaad8fe..c8a18383a4 100644 --- a/src/apis/cloudshell/v1alpha1.ts +++ b/src/apis/cloudshell/v1alpha1.ts @@ -76,9 +76,9 @@ export interface Schema$CreatePublicKeyRequest { /** * 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 `{}`. + * 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 {} /** @@ -244,15 +244,15 @@ export interface Schema$StartEnvironmentResponse { * 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. + * 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 { /** @@ -333,7 +333,7 @@ export class Resource$Users$Environments { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1alpha1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), @@ -388,7 +388,7 @@ export class Resource$Users$Environments { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1alpha1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH' }, options), @@ -446,7 +446,7 @@ export class Resource$Users$Environments { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1alpha1/{name}:start') + url: (rootUrl + '/v1alpha1/{+name}:start') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -514,7 +514,7 @@ export class Resource$Users$Environments$Publickeys { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1alpha1/{parent}/publicKeys') + url: (rootUrl + '/v1alpha1/{+parent}/publicKeys') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -566,7 +566,7 @@ export class Resource$Users$Environments$Publickeys { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1alpha1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE' }, options), diff --git a/src/apis/cloudtasks/v2beta2.ts b/src/apis/cloudtasks/v2beta2.ts index 9378b8f816..1c014b9f18 100644 --- a/src/apis/cloudtasks/v2beta2.ts +++ b/src/apis/cloudtasks/v2beta2.ts @@ -373,9 +373,9 @@ export interface Schema$CreateTaskRequest { /** * 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 `{}`. + * 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 {} /** @@ -518,15 +518,14 @@ export interface Schema$PauseQueueRequest {} * of a list of `bindings`. A `Binding` binds a list of `members` to a `role`, * where the members can be user accounts, Google groups, Google domains, and * service accounts. A `role` is a named list of permissions defined by IAM. - * **Example** { "bindings": [ { - * "role": "roles/owner", "members": [ - * "user:mike@example.com", - * "group:admins@example.com", + * **Example** { "bindings": [ { "role": + * "roles/owner", "members": [ + * "user:mike@example.com", "group:admins@example.com", * "domain:google.com", - * "serviceAccount:my-other-app@appspot.gserviceaccount.com", - * ] }, { "role": "roles/viewer", - * "members": ["user:sean@example.com"] } ] - * } For a description of IAM and its features, see the [IAM developer's + * "serviceAccount:my-other-app@appspot.gserviceaccount.com", ] }, { + * "role": "roles/viewer", "members": + * ["user:sean@example.com"] } ] } For a + * description of IAM and its features, see the [IAM developer's * guide](https://cloud.google.com/iam/docs). */ export interface Schema$Policy { @@ -672,8 +671,8 @@ export interface Schema$RateLimits { * dispatched until the queue's bucket runs out of tokens. The bucket will * be continuously refilled with new tokens based on * max_tasks_dispatched_per_second. Cloud Tasks will pick the value of - * `max_burst_size` based on the value of max_tasks_dispatched_per_second. - * For App Engine queues that were created or updated using `queue.yaml/xml`, + * `max_burst_size` based on the value of max_tasks_dispatched_per_second. For + * App Engine queues that were created or updated using `queue.yaml/xml`, * `max_burst_size` is equal to * [bucket_size](/appengine/docs/standard/python/config/queueref#bucket_size). * Since `max_burst_size` is output only, if UpdateQueue is called on a queue @@ -853,15 +852,15 @@ export interface Schema$SetIamPolicyRequest { * 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. + * 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 { /** @@ -899,8 +898,7 @@ export interface Schema$Task { * The task name. The task name must have the following format: * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` * * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]), hyphens - * (-), colons (:), or periods (.). For more information, see - * [Identifying + * (-), colons (:), or periods (.). For more information, see [Identifying * projects](/resource-manager/docs/creating-managing-projects#identifying_projects) * * `LOCATION_ID` is the canonical ID for the task's location. The * list of available locations can be obtained by calling ListLocations. @@ -1099,7 +1097,7 @@ export class Resource$Projects$Locations { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2beta2/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), @@ -1222,7 +1220,7 @@ export class Resource$Projects$Locations { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2beta2/{name}/locations') + url: (rootUrl + '/v2beta2/{+name}/locations') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -1353,7 +1351,7 @@ export class Resource$Projects$Locations$Queues { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2beta2/{parent}/queues') + url: (rootUrl + '/v2beta2/{+parent}/queues') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -1461,7 +1459,7 @@ export class Resource$Projects$Locations$Queues { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2beta2/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE' }, options), @@ -1562,7 +1560,7 @@ export class Resource$Projects$Locations$Queues { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2beta2/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), @@ -1674,7 +1672,7 @@ export class Resource$Projects$Locations$Queues { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2beta2/{resource}:getIamPolicy') + url: (rootUrl + '/v2beta2/{+resource}:getIamPolicy') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -1799,7 +1797,7 @@ export class Resource$Projects$Locations$Queues { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2beta2/{parent}/queues') + url: (rootUrl + '/v2beta2/{+parent}/queues') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -1927,7 +1925,7 @@ export class Resource$Projects$Locations$Queues { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2beta2/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH' }, options), @@ -2038,7 +2036,7 @@ export class Resource$Projects$Locations$Queues { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2beta2/{name}:pause') + url: (rootUrl + '/v2beta2/{+name}:pause') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -2150,7 +2148,7 @@ export class Resource$Projects$Locations$Queues { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2beta2/{name}:purge') + url: (rootUrl + '/v2beta2/{+name}:purge') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -2265,7 +2263,7 @@ export class Resource$Projects$Locations$Queues { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2beta2/{name}:resume') + url: (rootUrl + '/v2beta2/{+name}:resume') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -2379,7 +2377,7 @@ export class Resource$Projects$Locations$Queues { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2beta2/{resource}:setIamPolicy') + url: (rootUrl + '/v2beta2/{+resource}:setIamPolicy') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -2498,7 +2496,7 @@ export class Resource$Projects$Locations$Queues { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2beta2/{resource}:testIamPermissions') + url: (rootUrl + '/v2beta2/{+resource}:testIamPermissions') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -2627,7 +2625,7 @@ export class Resource$Projects$Locations$Queues$Tasks { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2beta2/{name}:acknowledge') + url: (rootUrl + '/v2beta2/{+name}:acknowledge') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -2740,7 +2738,7 @@ export class Resource$Projects$Locations$Queues$Tasks { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2beta2/{name}:cancelLease') + url: (rootUrl + '/v2beta2/{+name}:cancelLease') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -2794,8 +2792,8 @@ export class Resource$Projects$Locations$Queues$Tasks { * // The queue name. For example: * // `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` * // The queue must already exist. - * parent: 'projects/my-project/locations/my-location/queues/my-queue', - * // TODO: Update placeholder value. + * parent: 'projects/my-project/locations/my-location/queues/my-queue', // + * TODO: Update placeholder value. * * resource: { * // TODO: Add desired properties to the request body. @@ -2858,7 +2856,7 @@ export class Resource$Projects$Locations$Queues$Tasks { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2beta2/{parent}/tasks') + url: (rootUrl + '/v2beta2/{+parent}/tasks') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -2963,7 +2961,7 @@ export class Resource$Projects$Locations$Queues$Tasks { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2beta2/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE' }, options), @@ -3067,7 +3065,7 @@ export class Resource$Projects$Locations$Queues$Tasks { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2beta2/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), @@ -3129,7 +3127,7 @@ export class Resource$Projects$Locations$Queues$Tasks { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2beta2/{parent}/tasks:lease') + url: (rootUrl + '/v2beta2/{+parent}/tasks:lease') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -3176,8 +3174,8 @@ export class Resource$Projects$Locations$Queues$Tasks { * // Required. * // The queue name. For example: * // `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` - * parent: 'projects/my-project/locations/my-location/queues/my-queue', - * // TODO: Update placeholder value. + * parent: 'projects/my-project/locations/my-location/queues/my-queue', // + * TODO: Update placeholder value. * * auth: authClient, * }; @@ -3257,7 +3255,7 @@ export class Resource$Projects$Locations$Queues$Tasks { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2beta2/{parent}/tasks') + url: (rootUrl + '/v2beta2/{+parent}/tasks') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -3370,7 +3368,7 @@ export class Resource$Projects$Locations$Queues$Tasks { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2beta2/{name}:renewLease') + url: (rootUrl + '/v2beta2/{+name}:renewLease') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -3492,8 +3490,8 @@ export class Resource$Projects$Locations$Queues$Tasks { const parameters = { options: Object.assign( { - url: - (rootUrl + '/v2beta2/{name}:run').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2beta2/{+name}:run') + .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, options), diff --git a/src/apis/cloudtrace/v1.ts b/src/apis/cloudtrace/v1.ts index 85f4f410fd..30e56acd89 100644 --- a/src/apis/cloudtrace/v1.ts +++ b/src/apis/cloudtrace/v1.ts @@ -68,9 +68,9 @@ export class Cloudtrace { /** * 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 `{}`. + * 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 {} /** diff --git a/src/apis/cloudtrace/v2.ts b/src/apis/cloudtrace/v2.ts index 9e5cc31231..79a3131426 100644 --- a/src/apis/cloudtrace/v2.ts +++ b/src/apis/cloudtrace/v2.ts @@ -130,9 +130,9 @@ export interface Schema$BatchWriteSpansRequest { /** * 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 `{}`. + * 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 {} /** @@ -390,15 +390,15 @@ export interface Schema$StackTrace { * 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. + * 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 { /** @@ -536,7 +536,7 @@ export class Resource$Projects$Traces { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2/{name}/traces:batchWrite') + url: (rootUrl + '/v2/{+name}/traces:batchWrite') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -599,7 +599,7 @@ export class Resource$Projects$Traces$Spans { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, options), diff --git a/src/apis/compute/alpha.ts b/src/apis/compute/alpha.ts index 1b24cafa49..89462c72fc 100644 --- a/src/apis/compute/alpha.ts +++ b/src/apis/compute/alpha.ts @@ -355,8 +355,8 @@ export interface Schema$AccessConfig { natIP: string; /** * This signifies the networking tier used for configuring this access - * configuration and can only take the following values: PREMIUM, STANDARD. - * If an AccessConfig is specified without a valid external IP address, an + * configuration and can only take the following values: PREMIUM, STANDARD. If + * an AccessConfig is specified without a valid external IP address, an * ephemeral IP will be created with this networkTier. If an AccessConfig * with a valid external IP address is specified, it must match that of the * networkTier associated with the Address resource owning that IP. @@ -878,11 +878,11 @@ export interface Schema$Autoscaler { */ name: string; /** - * [Output Only] Target recommended MIG size computed by autoscaler. - * Autoscaler calculates recommended MIG size even when autoscaling policy - * mode is different from ON. This field is empty when autoscaler is not - * connected to the existing managed instance group or autoscaler did not - * generate its first prediction. + * [Output Only] Target recommended MIG size (number of instances) computed by + * autoscaler. Autoscaler calculates recommended MIG size even when + * autoscaling policy mode is different from ON. This field is empty when + * autoscaler is not connected to the existing managed instance group or + * autoscaler did not generate its prediction. */ recommendedSize: number; /** @@ -1118,8 +1118,8 @@ export interface Schema$AutoscalingPolicyCustomMetricUtilization { /** * The target value of the metric that autoscaler should maintain. This must * be a positive value. A utilization metric scales number of virtual machines - * handling requests to increase or decrease proportionally to the metric. - * For example, a good metric to use as a utilization_target is + * handling requests to increase or decrease proportionally to the metric. For + * example, a good metric to use as a utilization_target is * compute.googleapis.com/instance/network/received_bytes_count. The * autoscaler will work to keep this value constant for each of the instances. */ @@ -1626,8 +1626,8 @@ export interface Schema$BackendServiceFailoverPolicy { /** * This option is used only when no healthy VMs are detected in the primary * and backup instance groups. When set to true, traffic is dropped. When set - * to false, new connections are sent across all VMs in the primary group. - * The default is false. + * to false, new connections are sent across all VMs in the primary group. The + * default is false. */ dropTrafficIfUnhealthy: boolean; /** @@ -2815,12 +2815,12 @@ export interface Schema$ForwardingRule { */ id: string; /** - * The IP address that this forwarding rule is serving on behalf of. - * Addresses are restricted based on the forwarding rule's load balancing - * scheme (EXTERNAL or INTERNAL) and scope (global or regional). When the - * load balancing scheme is EXTERNAL, for global forwarding rules, the address - * must be a global IP, and for regional forwarding rules, the address must - * live in the same region as the forwarding rule. If this field is empty, an + * The IP address that this forwarding rule is serving on behalf of. Addresses + * are restricted based on the forwarding rule's load balancing scheme + * (EXTERNAL or INTERNAL) and scope (global or regional). When the load + * balancing scheme is EXTERNAL, for global forwarding rules, the address must + * be a global IP, and for regional forwarding rules, the address must live in + * the same region as the forwarding rule. If this field is empty, an * ephemeral IPv4 address from the same scope (global or regional) will be * assigned. A regional forwarding rule supports IPv4 only. A global * forwarding rule supports either IPv4 or IPv6. When the load balancing @@ -2936,13 +2936,13 @@ export interface Schema$ForwardingRule { 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. + * 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; /** @@ -6372,12 +6372,12 @@ export interface Schema$LogConfigCloudAuditOptions { logName: string; } /** - * Increment a streamz counter with the specified metric and field names. - * Metric names should start with a '/', generally be lowercase-only, - * and end in "_count". Field names should not contain an initial - * slash. The actual exported metric names will have "/iam/policy" - * prepended. Field names correspond to IAM request parameters and field values - * are their respective values. At present the only supported field names are - + * Increment a streamz counter with the specified metric and field names. Metric + * names should start with a '/', generally be lowercase-only, and end + * in "_count". Field names should not contain an initial slash. The + * actual exported metric names will have "/iam/policy" prepended. + * Field names correspond to IAM request parameters and field values are their + * respective values. At present the only supported field names are - * "iam_principal", corresponding to IAMContext.principal; - * "" (empty string), resulting in one aggretated counter with no * field. Examples: counter { metric: "/debug_access_count" field: @@ -8206,13 +8206,6 @@ export interface Schema$RegionSetLabelsRequest { */ labels: any; } -export interface Schema$RegionUrlMapsDeleteRequest { - /** - * begin_interface: MixerMutationRequestBuilder Request ID to support - * idempotency. - */ - requestId: string; -} export interface Schema$RegionUrlMapsValidateRequest { /** * Content of the UrlMap to be validated. @@ -9781,11 +9774,27 @@ export interface Schema$Subnetwork { * and updated using setPrivateIpGoogleAccess. */ privateIpGoogleAccess: boolean; + /** + * The purpose of the resource. This field can be either PRIVATE_RFC_1918 or + * INTERNAL_HTTPS_LOAD_BALANCER. A subnetwork with purpose set to + * INTERNAL_HTTPS_LOAD_BALANCER is a user-created subnetwork that is reserved + * for Internal HTTP(S) Load Balancing. If unspecified, the purpose defaults + * to PRIVATE_RFC_1918. + */ + purpose: string; /** * URL of the region where the Subnetwork resides. This field can be set only * at resource creation time. */ region: string; + /** + * The role of subnetwork. Currenly, this field is only used when purpose = + * INTERNAL_HTTPS_LOAD_BALANCER. The value can be set to ACTIVE or BACKUP. An + * ACTIVE subnetwork is one that is currently being used for Internal HTTP(S) + * Load Balancing. A BACKUP subnetwork is one that is ready to be promoted to + * ACTIVE or is currently draining. + */ + role: string; /** * An array of configurations for secondary IP ranges for VM instances * contained in this subnetwork. The primary IP of such VM must belong to the @@ -33673,8 +33682,8 @@ export class Resource$Regionurlmaps { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. + * @param {string=} params.requestId begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. * @param {string} params.urlMap Name of the UrlMap resource to delete. - * @param {().RegionUrlMapsDeleteRequest} 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 @@ -33786,6 +33795,7 @@ export class Resource$Regionurlmaps { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. + * @param {string=} params.requestId begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. * @param {().UrlMap} 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. @@ -33904,6 +33914,7 @@ export class Resource$Regionurlmaps { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. + * @param {string=} params.requestId begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. * @param {string} params.urlMap Name of the UrlMap resource to patch. * @param {().UrlMap} params.resource Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. @@ -34024,6 +34035,7 @@ export class Resource$Regionurlmaps { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. + * @param {string=} params.requestId begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. * @param {string} params.urlMap Name of the UrlMap resource to update. * @param {().UrlMap} params.resource Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. diff --git a/src/apis/compute/beta.ts b/src/apis/compute/beta.ts index eace45e966..3d2dc56ab9 100644 --- a/src/apis/compute/beta.ts +++ b/src/apis/compute/beta.ts @@ -337,8 +337,8 @@ export interface Schema$AccessConfig { natIP: string; /** * This signifies the networking tier used for configuring this access - * configuration and can only take the following values: PREMIUM, STANDARD. - * If an AccessConfig is specified without a valid external IP address, an + * configuration and can only take the following values: PREMIUM, STANDARD. If + * an AccessConfig is specified without a valid external IP address, an * ephemeral IP will be created with this networkTier. If an AccessConfig * with a valid external IP address is specified, it must match that of the * networkTier associated with the Address resource owning that IP. @@ -1050,8 +1050,8 @@ export interface Schema$AutoscalingPolicyCustomMetricUtilization { /** * The target value of the metric that autoscaler should maintain. This must * be a positive value. A utilization metric scales number of virtual machines - * handling requests to increase or decrease proportionally to the metric. - * For example, a good metric to use as a utilization_target is + * handling requests to increase or decrease proportionally to the metric. For + * example, a good metric to use as a utilization_target is * compute.googleapis.com/instance/network/received_bytes_count. The * autoscaler will work to keep this value constant for each of the instances. */ @@ -2555,12 +2555,12 @@ export interface Schema$ForwardingRule { */ id: string; /** - * The IP address that this forwarding rule is serving on behalf of. - * Addresses are restricted based on the forwarding rule's load balancing - * scheme (EXTERNAL or INTERNAL) and scope (global or regional). When the - * load balancing scheme is EXTERNAL, for global forwarding rules, the address - * must be a global IP, and for regional forwarding rules, the address must - * live in the same region as the forwarding rule. If this field is empty, an + * The IP address that this forwarding rule is serving on behalf of. Addresses + * are restricted based on the forwarding rule's load balancing scheme + * (EXTERNAL or INTERNAL) and scope (global or regional). When the load + * balancing scheme is EXTERNAL, for global forwarding rules, the address must + * be a global IP, and for regional forwarding rules, the address must live in + * the same region as the forwarding rule. If this field is empty, an * ephemeral IPv4 address from the same scope (global or regional) will be * assigned. A regional forwarding rule supports IPv4 only. A global * forwarding rule supports either IPv4 or IPv6. When the load balancing @@ -2676,13 +2676,13 @@ export interface Schema$ForwardingRule { 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. + * 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; /** @@ -5435,12 +5435,12 @@ export interface Schema$LogConfigCloudAuditOptions { logName: string; } /** - * Increment a streamz counter with the specified metric and field names. - * Metric names should start with a '/', generally be lowercase-only, - * and end in "_count". Field names should not contain an initial - * slash. The actual exported metric names will have "/iam/policy" - * prepended. Field names correspond to IAM request parameters and field values - * are their respective values. At present the only supported field names are - + * Increment a streamz counter with the specified metric and field names. Metric + * names should start with a '/', generally be lowercase-only, and end + * in "_count". Field names should not contain an initial slash. The + * actual exported metric names will have "/iam/policy" prepended. + * Field names correspond to IAM request parameters and field values are their + * respective values. At present the only supported field names are - * "iam_principal", corresponding to IAMContext.principal; - * "" (empty string), resulting in one aggretated counter with no * field. Examples: counter { metric: "/debug_access_count" field: @@ -7463,6 +7463,12 @@ export interface Schema$SecurityPolicyRuleMatcher { * specified if versioned_expr is not specified. */ config: Schema$SecurityPolicyRuleMatcherConfig; + /** + * User defined CEVAL expression. A CEVAL expression is used to specify match + * criteria such as origin.ip, source.region_code and contents in the request + * header. + */ + expr: Schema$Expr; /** * CIDR IP address range. */ diff --git a/src/apis/compute/v1.ts b/src/apis/compute/v1.ts index 49711efd9a..9e3aaeeb8f 100644 --- a/src/apis/compute/v1.ts +++ b/src/apis/compute/v1.ts @@ -907,8 +907,8 @@ export interface Schema$AutoscalingPolicyCustomMetricUtilization { /** * The target value of the metric that autoscaler should maintain. This must * be a positive value. A utilization metric scales number of virtual machines - * handling requests to increase or decrease proportionally to the metric. - * For example, a good metric to use as a utilization_target is + * handling requests to increase or decrease proportionally to the metric. For + * example, a good metric to use as a utilization_target is * compute.googleapis.com/instance/network/received_bytes_count. The * autoscaler will work to keep this value constant for each of the instances. */ @@ -2171,12 +2171,12 @@ export interface Schema$ForwardingRule { */ id: string; /** - * The IP address that this forwarding rule is serving on behalf of. - * Addresses are restricted based on the forwarding rule's load balancing - * scheme (EXTERNAL or INTERNAL) and scope (global or regional). When the - * load balancing scheme is EXTERNAL, for global forwarding rules, the address - * must be a global IP, and for regional forwarding rules, the address must - * live in the same region as the forwarding rule. If this field is empty, an + * The IP address that this forwarding rule is serving on behalf of. Addresses + * are restricted based on the forwarding rule's load balancing scheme + * (EXTERNAL or INTERNAL) and scope (global or regional). When the load + * balancing scheme is EXTERNAL, for global forwarding rules, the address must + * be a global IP, and for regional forwarding rules, the address must live in + * the same region as the forwarding rule. If this field is empty, an * ephemeral IPv4 address from the same scope (global or regional) will be * assigned. A regional forwarding rule supports IPv4 only. A global * forwarding rule supports either IPv4 or IPv6. When the load balancing diff --git a/src/apis/container/v1.ts b/src/apis/container/v1.ts index 934ee37778..6c6d88b27a 100644 --- a/src/apis/container/v1.ts +++ b/src/apis/container/v1.ts @@ -449,8 +449,8 @@ export interface Schema$ClusterUpdate { */ desiredNodePoolId: string; /** - * The Kubernetes version to change the nodes to (typically an upgrade). - * Users may specify either explicit versions offered by Kubernetes Engine or + * The Kubernetes version to change the nodes to (typically an upgrade). Users + * may specify either explicit versions offered by Kubernetes Engine or * version aliases, which have the following behavior: - "latest": * picks the highest valid Kubernetes version - "1.X": picks the * highest valid patch+gke.N patch in the 1.X version - "1.X.Y": @@ -568,9 +568,9 @@ export interface Schema$DailyMaintenanceWindow { /** * 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 `{}`. + * 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 {} /** @@ -1704,8 +1704,8 @@ export interface Schema$UpdateNodePoolRequest { */ nodePoolId: string; /** - * The Kubernetes version to change the nodes to (typically an upgrade). - * Users may specify either explicit versions offered by Kubernetes Engine or + * The Kubernetes version to change the nodes to (typically an upgrade). Users + * may specify either explicit versions offered by Kubernetes Engine or * version aliases, which have the following behavior: - "latest": * picks the highest valid Kubernetes version - "1.X": picks the * highest valid patch+gke.N patch in the 1.X version - "1.X.Y": @@ -1797,7 +1797,7 @@ export class Resource$Projects$Locations { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}/serverConfig') + url: (rootUrl + '/v1/{+name}/serverConfig') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -1865,7 +1865,7 @@ export class Resource$Projects$Locations$Clusters { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}:completeIpRotation') + url: (rootUrl + '/v1/{+name}:completeIpRotation') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -1926,7 +1926,7 @@ export class Resource$Projects$Locations$Clusters { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{parent}/clusters') + url: (rootUrl + '/v1/{+parent}/clusters') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -1986,7 +1986,7 @@ export class Resource$Projects$Locations$Clusters { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE' }, options), @@ -2039,7 +2039,7 @@ export class Resource$Projects$Locations$Clusters { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), @@ -2095,7 +2095,7 @@ export class Resource$Projects$Locations$Clusters { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{parent}/clusters') + url: (rootUrl + '/v1/{+parent}/clusters') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -2150,7 +2150,7 @@ export class Resource$Projects$Locations$Clusters { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}:setAddons') + url: (rootUrl + '/v1/{+name}:setAddons') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -2205,7 +2205,7 @@ export class Resource$Projects$Locations$Clusters { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}:setLegacyAbac') + url: (rootUrl + '/v1/{+name}:setLegacyAbac') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -2260,7 +2260,7 @@ export class Resource$Projects$Locations$Clusters { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}:setLocations') + url: (rootUrl + '/v1/{+name}:setLocations') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -2315,7 +2315,7 @@ export class Resource$Projects$Locations$Clusters { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}:setLogging') + url: (rootUrl + '/v1/{+name}:setLogging') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -2370,7 +2370,7 @@ export class Resource$Projects$Locations$Clusters { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}:setMaintenancePolicy') + url: (rootUrl + '/v1/{+name}:setMaintenancePolicy') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -2427,7 +2427,7 @@ export class Resource$Projects$Locations$Clusters { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}:setMasterAuth') + url: (rootUrl + '/v1/{+name}:setMasterAuth') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -2482,7 +2482,7 @@ export class Resource$Projects$Locations$Clusters { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}:setMonitoring') + url: (rootUrl + '/v1/{+name}:setMonitoring') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -2537,7 +2537,7 @@ export class Resource$Projects$Locations$Clusters { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}:setNetworkPolicy') + url: (rootUrl + '/v1/{+name}:setNetworkPolicy') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -2592,7 +2592,7 @@ export class Resource$Projects$Locations$Clusters { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}:setResourceLabels') + url: (rootUrl + '/v1/{+name}:setResourceLabels') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -2647,7 +2647,7 @@ export class Resource$Projects$Locations$Clusters { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}:startIpRotation') + url: (rootUrl + '/v1/{+name}:startIpRotation') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -2701,7 +2701,7 @@ export class Resource$Projects$Locations$Clusters { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PUT' }, options), @@ -2755,7 +2755,7 @@ export class Resource$Projects$Locations$Clusters { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}:updateMaster') + url: (rootUrl + '/v1/{+name}:updateMaster') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -2820,7 +2820,7 @@ export class Resource$Projects$Locations$Clusters$Nodepools { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{parent}/nodePools') + url: (rootUrl + '/v1/{+parent}/nodePools') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -2877,7 +2877,7 @@ export class Resource$Projects$Locations$Clusters$Nodepools { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE' }, options), @@ -2931,7 +2931,7 @@ export class Resource$Projects$Locations$Clusters$Nodepools { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), @@ -2989,7 +2989,7 @@ export class Resource$Projects$Locations$Clusters$Nodepools { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{parent}/nodePools') + url: (rootUrl + '/v1/{+parent}/nodePools') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -3045,8 +3045,8 @@ export class Resource$Projects$Locations$Clusters$Nodepools { const parameters = { options: Object.assign( { - url: - (rootUrl + '/v1/{name}:rollback').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:rollback') + .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, options), @@ -3100,7 +3100,7 @@ export class Resource$Projects$Locations$Clusters$Nodepools { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}:setAutoscaling') + url: (rootUrl + '/v1/{+name}:setAutoscaling') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -3155,7 +3155,7 @@ export class Resource$Projects$Locations$Clusters$Nodepools { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}:setManagement') + url: (rootUrl + '/v1/{+name}:setManagement') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -3210,7 +3210,8 @@ export class Resource$Projects$Locations$Clusters$Nodepools { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}:setSize').replace(/([^:]\/)\/+/g, '$1'), + url: + (rootUrl + '/v1/{+name}:setSize').replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, options), @@ -3263,7 +3264,7 @@ export class Resource$Projects$Locations$Clusters$Nodepools { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PUT' }, options), @@ -3327,7 +3328,7 @@ export class Resource$Projects$Locations$Operations { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, options), @@ -3380,7 +3381,7 @@ export class Resource$Projects$Locations$Operations { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), @@ -3437,7 +3438,7 @@ export class Resource$Projects$Locations$Operations { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{parent}/operations') + url: (rootUrl + '/v1/{+parent}/operations') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, diff --git a/src/apis/container/v1beta1.ts b/src/apis/container/v1beta1.ts index 6c99f1937f..367872c7a5 100644 --- a/src/apis/container/v1beta1.ts +++ b/src/apis/container/v1beta1.ts @@ -465,8 +465,8 @@ export interface Schema$ClusterUpdate { */ desiredNodePoolId: string; /** - * The Kubernetes version to change the nodes to (typically an upgrade). - * Users may specify either explicit versions offered by Kubernetes Engine or + * The Kubernetes version to change the nodes to (typically an upgrade). Users + * may specify either explicit versions offered by Kubernetes Engine or * version aliases, which have the following behavior: - "latest": * picks the highest valid Kubernetes version - "1.X": picks the * highest valid patch+gke.N patch in the 1.X version - "1.X.Y": @@ -585,9 +585,9 @@ export interface Schema$DailyMaintenanceWindow { /** * 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 `{}`. + * 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 {} /** @@ -1768,8 +1768,8 @@ export interface Schema$UpdateNodePoolRequest { */ nodePoolId: string; /** - * The Kubernetes version to change the nodes to (typically an upgrade). - * Users may specify either explicit versions offered by Kubernetes Engine or + * The Kubernetes version to change the nodes to (typically an upgrade). Users + * may specify either explicit versions offered by Kubernetes Engine or * version aliases, which have the following behavior: - "latest": * picks the highest valid Kubernetes version - "1.X": picks the * highest valid patch+gke.N patch in the 1.X version - "1.X.Y": @@ -1872,7 +1872,7 @@ export class Resource$Projects$Locations { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1beta1/{name}/serverConfig') + url: (rootUrl + '/v1beta1/{+name}/serverConfig') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -1940,7 +1940,7 @@ export class Resource$Projects$Locations$Clusters { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1beta1/{name}:completeIpRotation') + url: (rootUrl + '/v1beta1/{+name}:completeIpRotation') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -2001,7 +2001,7 @@ export class Resource$Projects$Locations$Clusters { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1beta1/{parent}/clusters') + url: (rootUrl + '/v1beta1/{+parent}/clusters') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -2061,7 +2061,7 @@ export class Resource$Projects$Locations$Clusters { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1beta1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE' }, options), @@ -2114,7 +2114,7 @@ export class Resource$Projects$Locations$Clusters { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1beta1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), @@ -2170,7 +2170,7 @@ export class Resource$Projects$Locations$Clusters { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1beta1/{parent}/clusters') + url: (rootUrl + '/v1beta1/{+parent}/clusters') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -2225,7 +2225,7 @@ export class Resource$Projects$Locations$Clusters { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1beta1/{name}:setAddons') + url: (rootUrl + '/v1beta1/{+name}:setAddons') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -2280,7 +2280,7 @@ export class Resource$Projects$Locations$Clusters { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1beta1/{name}:setLegacyAbac') + url: (rootUrl + '/v1beta1/{+name}:setLegacyAbac') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -2335,7 +2335,7 @@ export class Resource$Projects$Locations$Clusters { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1beta1/{name}:setLocations') + url: (rootUrl + '/v1beta1/{+name}:setLocations') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -2390,7 +2390,7 @@ export class Resource$Projects$Locations$Clusters { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1beta1/{name}:setLogging') + url: (rootUrl + '/v1beta1/{+name}:setLogging') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -2445,7 +2445,7 @@ export class Resource$Projects$Locations$Clusters { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1beta1/{name}:setMaintenancePolicy') + url: (rootUrl + '/v1beta1/{+name}:setMaintenancePolicy') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -2503,7 +2503,7 @@ export class Resource$Projects$Locations$Clusters { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1beta1/{name}:setMasterAuth') + url: (rootUrl + '/v1beta1/{+name}:setMasterAuth') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -2558,7 +2558,7 @@ export class Resource$Projects$Locations$Clusters { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1beta1/{name}:setMonitoring') + url: (rootUrl + '/v1beta1/{+name}:setMonitoring') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -2613,7 +2613,7 @@ export class Resource$Projects$Locations$Clusters { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1beta1/{name}:setNetworkPolicy') + url: (rootUrl + '/v1beta1/{+name}:setNetworkPolicy') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -2668,7 +2668,7 @@ export class Resource$Projects$Locations$Clusters { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1beta1/{name}:setResourceLabels') + url: (rootUrl + '/v1beta1/{+name}:setResourceLabels') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -2723,7 +2723,7 @@ export class Resource$Projects$Locations$Clusters { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1beta1/{name}:startIpRotation') + url: (rootUrl + '/v1beta1/{+name}:startIpRotation') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -2777,7 +2777,7 @@ export class Resource$Projects$Locations$Clusters { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1beta1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PUT' }, options), @@ -2831,7 +2831,7 @@ export class Resource$Projects$Locations$Clusters { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1beta1/{name}:updateMaster') + url: (rootUrl + '/v1beta1/{+name}:updateMaster') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -2896,7 +2896,7 @@ export class Resource$Projects$Locations$Clusters$Nodepools { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1beta1/{parent}/nodePools') + url: (rootUrl + '/v1beta1/{+parent}/nodePools') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -2953,7 +2953,7 @@ export class Resource$Projects$Locations$Clusters$Nodepools { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1beta1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE' }, options), @@ -3007,7 +3007,7 @@ export class Resource$Projects$Locations$Clusters$Nodepools { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1beta1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), @@ -3065,7 +3065,7 @@ export class Resource$Projects$Locations$Clusters$Nodepools { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1beta1/{parent}/nodePools') + url: (rootUrl + '/v1beta1/{+parent}/nodePools') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -3121,7 +3121,7 @@ export class Resource$Projects$Locations$Clusters$Nodepools { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1beta1/{name}:rollback') + url: (rootUrl + '/v1beta1/{+name}:rollback') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -3176,7 +3176,7 @@ export class Resource$Projects$Locations$Clusters$Nodepools { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1beta1/{name}:setAutoscaling') + url: (rootUrl + '/v1beta1/{+name}:setAutoscaling') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -3231,7 +3231,7 @@ export class Resource$Projects$Locations$Clusters$Nodepools { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1beta1/{name}:setManagement') + url: (rootUrl + '/v1beta1/{+name}:setManagement') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -3286,7 +3286,7 @@ export class Resource$Projects$Locations$Clusters$Nodepools { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1beta1/{name}:setSize') + url: (rootUrl + '/v1beta1/{+name}:setSize') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -3340,7 +3340,7 @@ export class Resource$Projects$Locations$Clusters$Nodepools { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1beta1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PUT' }, options), @@ -3404,7 +3404,7 @@ export class Resource$Projects$Locations$Operations { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1beta1/{name}:cancel') + url: (rootUrl + '/v1beta1/{+name}:cancel') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -3458,7 +3458,7 @@ export class Resource$Projects$Locations$Operations { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1beta1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), @@ -3515,7 +3515,7 @@ export class Resource$Projects$Locations$Operations { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1beta1/{parent}/operations') + url: (rootUrl + '/v1beta1/{+parent}/operations') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, diff --git a/src/apis/content/v2.ts b/src/apis/content/v2.ts index 9ea14cf490..9ac5416a45 100644 --- a/src/apis/content/v2.ts +++ b/src/apis/content/v2.ts @@ -328,6 +328,10 @@ export interface Schema$AccountStatusAccountLevelIssue { * Country for which this issue is reported. */ country: string; + /** + * The destination the issue applies to. + */ + destination: string; /** * Additional details about the issue. */ @@ -350,6 +354,10 @@ export interface Schema$AccountStatusDataQualityIssue { * Country for which this issue is reported. */ country: string; + /** + * The destination the issue applies to. + */ + destination: string; /** * A more detailed description of the issue. */ @@ -405,6 +413,11 @@ export interface Schema$AccountstatusesCustomBatchRequestEntry { * An entry ID, unique within the batch request. */ batchId: number; + /** + * If set, only issues for the specified destinations are returned, otherwise + * only issues for the Shopping destination. + */ + destinations: string[]; /** * The ID of the managing account. */ @@ -866,6 +879,13 @@ export interface Schema$DatafeedsCustomBatchResponseEntry { */ errors: Schema$Errors; } +export interface Schema$DatafeedsFetchNowResponse { + /** + * Identifies what kind of resource this is. Value: the fixed string + * "content#datafeedsFetchNowResponse". + */ + kind: string; +} export interface Schema$DatafeedsListResponse { /** * Identifies what kind of resource this is. Value: the fixed string @@ -3197,7 +3217,7 @@ export interface Schema$PosCustomBatchRequestEntry { */ store: Schema$PosStore; /** - * The store code. Required only to get/submit store information. + * The store code. Set this only if the method is delete or get. */ storeCode: string; /** @@ -4123,6 +4143,10 @@ export interface Schema$ProductStatus { title: string; } export interface Schema$ProductStatusDataQualityIssue { + /** + * The destination the issue applies to. + */ + destination: string; /** * A more detailed error string. */ @@ -4189,6 +4213,11 @@ export interface Schema$ProductstatusesCustomBatchRequestEntry { * An entry ID, unique within the batch request. */ batchId: number; + /** + * If set, only issues for the specified destinations are returned, otherwise + * only issues for the Shopping destination. + */ + destinations: string[]; includeAttributes: boolean; /** * The ID of the managing account. @@ -5328,6 +5357,7 @@ export class Resource$Accountstatuses { * * @param {object} params Parameters for request * @param {string} params.accountId The ID of the account. + * @param {string=} params.destinations If set, only issues for the specified destinations are returned, otherwise only issues for the Shopping destination. * @param {string} params.merchantId The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and accountId must be the ID of a sub-account of this account. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. @@ -5382,6 +5412,7 @@ export class Resource$Accountstatuses { * @memberOf! () * * @param {object} params Parameters for request + * @param {string=} params.destinations If set, only issues for the specified destinations are returned, otherwise only issues for the Shopping destination. * @param {integer=} params.maxResults The maximum number of account statuses to return in the response, used for paging. * @param {string} params.merchantId The ID of the managing account. This must be a multi-client account. * @param {string=} params.pageToken The token returned by the previous request. @@ -5854,6 +5885,65 @@ export class Resource$Datafeeds { } + /** + * content.datafeeds.fetchnow + * @desc Invokes a fetch for the datafeed in your Merchant Center account. + * @alias content.datafeeds.fetchnow + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.datafeedId The ID of the datafeed to be fetched. + * @param {boolean=} params.dryRun Flag to run the request in dry-run mode. + * @param {string} params.merchantId The ID of the account that manages the datafeed. This account cannot be a multi-client account. + * @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 + */ + fetchnow(params?: any, options?: MethodOptions): + AxiosPromise; + fetchnow( + params?: any, + options?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): void; + fetchnow( + params?: any, + options?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + if (typeof options === 'function') { + callback = options; + options = {}; + } + if (typeof params === 'function') { + callback = params; + params = {}; + } + options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + + '/content/v2/{merchantId}/datafeeds/{datafeedId}/fetchNow') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'POST' + }, + options), + params, + requiredParams: ['merchantId', 'datafeedId'], + pathParams: ['datafeedId', 'merchantId'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + /** * content.datafeeds.get * @desc Retrieves a datafeed configuration from your Merchant Center account. @@ -9024,6 +9114,7 @@ export class Resource$Productstatuses { * @memberOf! () * * @param {object} params Parameters for request + * @param {string=} params.destinations If set, only issues for the specified destinations are returned, otherwise only issues for the Shopping destination. * @param {boolean=} params.includeAttributes Flag to include full product data in the result of this get request. The default value is false. * @param {string} params.merchantId The ID of the account that contains the product. This account cannot be a multi-client account. * @param {string} params.productId The REST id of the product. @@ -9079,6 +9170,7 @@ export class Resource$Productstatuses { * @memberOf! () * * @param {object} params Parameters for request + * @param {string=} params.destinations If set, only issues for the specified destinations are returned, otherwise only issues for the Shopping destination. * @param {boolean=} params.includeAttributes Flag to include full product data in the results of the list request. The default value is false. * @param {boolean=} params.includeInvalidInsertedItems Flag to include the invalid inserted items in the result of the list request. By default the invalid items are not shown (the default value is false). * @param {integer=} params.maxResults The maximum number of product statuses to return in the response, used for paging. diff --git a/src/apis/dataflow/v1b3.ts b/src/apis/dataflow/v1b3.ts index 96365c83e9..fe0128f990 100644 --- a/src/apis/dataflow/v1b3.ts +++ b/src/apis/dataflow/v1b3.ts @@ -120,8 +120,8 @@ export interface Schema$ApproximateReportedProgress { * dynamic splitting and the current task remains processing block 3). * If * we are reading through the last block in a block-compressed file, or * reading or processing the last record in a perfectly splittable input, - * this value should be 1, because apart from the current task, no - * additional remainder can be split off. + * this value should be 1, because apart from the current task, no additional + * remainder can be split off. */ remainingParallelism: Schema$ReportedParallelism; } @@ -1052,8 +1052,7 @@ export interface Schema$Job { * A set of files the system should be aware of that are used for temporary * storage. These temporary files will be removed on job completion. No * duplicates are allowed. No file patterns are supported. The supported - * files are: Google Cloud Storage: - * storage.googleapis.com/{bucket}/{object} + * files are: Google Cloud Storage: storage.googleapis.com/{bucket}/{object} * bucket.storage.googleapis.com/{object} */ tempFiles: string[]; @@ -2250,15 +2249,15 @@ export interface Schema$StateFamilyConfig { * 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. + * 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 { /** @@ -2776,10 +2775,10 @@ export interface Schema$WorkerMessageCode { /** * Parameters contains specific information about the code. This is a struct * to allow parameters of different types. Examples: 1. For a - * "HARNESS_STARTED" message parameters might provide the name - * of the worker and additional data like timing information. 2. For a - * "GCS_DOWNLOAD_ERROR" parameters might contain fields listing - * the GCS objects being downloaded and fields containing errors. In general + * "HARNESS_STARTED" message parameters might provide the name of + * the worker and additional data like timing information. 2. For a + * "GCS_DOWNLOAD_ERROR" parameters might contain fields listing the + * GCS objects being downloaded and fields containing errors. In general * complex data structures should be avoided. If a worker needs to send a * specific and complicated data structure then please consider defining a new * proto and adding it to the data oneof in WorkerMessageResponse. diff --git a/src/apis/dataproc/v1.ts b/src/apis/dataproc/v1.ts index 514a81e14c..fb1f5291c0 100644 --- a/src/apis/dataproc/v1.ts +++ b/src/apis/dataproc/v1.ts @@ -77,7 +77,9 @@ export interface Schema$AcceleratorConfig { * expose to this instance. See Compute Engine AcceleratorTypes.Examples: * https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80 * projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80 - * nvidia-tesla-k80 + * nvidia-tesla-k80Auto Zone Exception: If you are using the Cloud Dataproc + * Auto Zone Placement feature, you must use the short name of the accelerator + * type resource, for example, nvidia-tesla-k80. */ acceleratorTypeUri: string; } @@ -286,8 +288,8 @@ export interface Schema$DiagnoseClusterRequest {} */ export interface Schema$DiagnoseClusterResults { /** - * Output only. The Google Cloud Storage URI of the diagnostic output. The - * output report is a plain text file with a summary of collected diagnostics. + * Output only. The Cloud Storage URI of the diagnostic output. The output + * report is a plain text file with a summary of collected diagnostics. */ outputUri: string; } @@ -350,7 +352,7 @@ export interface Schema$GceClusterConfig { /** * Optional. The service account of the instances. Defaults to the default * Compute Engine service account. Custom service accounts need permissions - * equivalent to the folloing IAM roles: roles/logging.logWriter + * equivalent to the following IAM roles: roles/logging.logWriter * roles/storage.objectAdmin(see * https://cloud.google.com/compute/docs/access/service-accounts#custom_service_accounts * for more information). Example: @@ -358,9 +360,9 @@ export interface Schema$GceClusterConfig { */ serviceAccount: string; /** - * Optional. The URIs of service account scopes to be included in Google - * Compute Engine instances. The following base set of scopes is always - * included: https://www.googleapis.com/auth/cloud.useraccounts.readonly + * Optional. The URIs of service account scopes to be included in Compute + * Engine instances. The following base set of scopes is always included: + * https://www.googleapis.com/auth/cloud.useraccounts.readonly * https://www.googleapis.com/auth/devstorage.read_write * https://www.googleapis.com/auth/logging.writeIf no scopes are specified, * the following defaults are also provided: @@ -520,7 +522,9 @@ export interface Schema$InstanceGroupConfig { * URL, partial URI, or short name are valid. Examples: * https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2 * projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2 - * n1-standard-2 + * n1-standard-2Auto Zone Exception: If you are using the Cloud Dataproc Auto + * Zone Placement feature, you must use the short name of the machine type + * resource, for example, n1-standard-2. */ machineTypeUri: string; /** @@ -905,9 +909,8 @@ export interface Schema$QueryList { * a semicolon. Multiple queries can be specified in one string by separating * each with a semicolon. Here is an example of an Cloud Dataproc API snippet * that uses a QueryList to specify a HiveJob: "hiveJob": { - * "queryList": { "queries": [ - * "query1", "query2", - * "query3;query4", ] } } + * "queryList": { "queries": [ "query1", + * "query2", "query3;query4", ] } } */ queries: string[]; } @@ -2685,7 +2688,7 @@ export class Resource$Projects$Regions$Operations { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, options), @@ -2788,7 +2791,7 @@ export class Resource$Projects$Regions$Operations { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE' }, options), @@ -2891,7 +2894,7 @@ export class Resource$Projects$Regions$Operations { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), @@ -3023,7 +3026,7 @@ export class Resource$Projects$Regions$Operations { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), diff --git a/src/apis/dataproc/v1beta2.ts b/src/apis/dataproc/v1beta2.ts index 6601417e0f..d36b36c70a 100644 --- a/src/apis/dataproc/v1beta2.ts +++ b/src/apis/dataproc/v1beta2.ts @@ -78,7 +78,9 @@ export interface Schema$AcceleratorConfig { * /compute/docs/reference/beta/acceleratorTypes)Examples * * https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80 * * projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80 - * * nvidia-tesla-k80 + * * nvidia-tesla-k80Auto Zone Exception: If you are using the Cloud Dataproc + * Auto Zone Placement feature, you must use the short name of the accelerator + * type resource, for example, nvidia-tesla-k80. */ acceleratorTypeUri: string; } @@ -92,14 +94,13 @@ export interface Schema$Binding { * represents anyone who is on the internet; with or without a Google * account. allAuthenticatedUsers: A special identifier that represents anyone * who is authenticated with a Google account or a service account. - * user:{emailid}: An email address that represents a specific Google - * account. For example, alice@gmail.com or joe@example.com. - * 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, google.com or - * example.com. + * user:{emailid}: An email address that represents a specific Google account. + * For example, alice@gmail.com or joe@example.com. 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, google.com or example.com. */ members: string[]; /** @@ -419,7 +420,7 @@ export interface Schema$GceClusterConfig { /** * Optional. The service account of the instances. Defaults to the default * Compute Engine service account. Custom service accounts need permissions - * equivalent to the folloing IAM roles: roles/logging.logWriter + * equivalent to the following IAM roles: roles/logging.logWriter * roles/storage.objectAdmin(see * https://cloud.google.com/compute/docs/access/service-accounts#custom_service_accounts * for more information). Example: @@ -427,9 +428,9 @@ export interface Schema$GceClusterConfig { */ serviceAccount: string; /** - * Optional. The URIs of service account scopes to be included in Google - * Compute Engine instances. The following base set of scopes is always - * included: https://www.googleapis.com/auth/cloud.useraccounts.readonly + * Optional. The URIs of service account scopes to be included in Compute + * Engine instances. The following base set of scopes is always included: + * https://www.googleapis.com/auth/cloud.useraccounts.readonly * https://www.googleapis.com/auth/devstorage.read_write * https://www.googleapis.com/auth/logging.writeIf no scopes are specified, * the following defaults are also provided: @@ -589,7 +590,9 @@ export interface Schema$InstanceGroupConfig { * URL, partial URI, or short name are valid. Examples: * https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2 * projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2 - * n1-standard-2 + * n1-standard-2Auto Zone Exception: If you are using the Cloud Dataproc Auto + * Zone Placement feature, you must use the short name of the machine type + * resource, for example, n1-standard-2. */ machineTypeUri: string; /** @@ -1066,8 +1069,8 @@ export interface Schema$PigJob { * accounts. A role is a named list of permissions defined by IAM.Example { * "bindings": [ { "role": * "roles/owner", "members": [ - * "user:mike@example.com", - * "group:admins@example.com", "domain:google.com", + * "user:mike@example.com", "group:admins@example.com", + * "domain:google.com", * "serviceAccount:my-other-app@appspot.gserviceaccount.com", ] * }, { "role": "roles/viewer", * "members": ["user:sean@example.com"] } ] } For a @@ -1155,9 +1158,8 @@ export interface Schema$QueryList { * a semicolon. Multiple queries can be specified in one string by separating * each with a semicolon. Here is an example of an Cloud Dataproc API snippet * that uses a QueryList to specify a HiveJob: "hiveJob": { - * "queryList": { "queries": [ - * "query1", "query2", - * "query3;query4", ] } } + * "queryList": { "queries": [ "query1", + * "query2", "query3;query4", ] } } */ queries: string[]; } @@ -1611,7 +1613,7 @@ export class Resource$Projects$Locations$Workflowtemplates { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1beta2/{parent}/workflowTemplates') + url: (rootUrl + '/v1beta2/{+parent}/workflowTemplates') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -1664,7 +1666,7 @@ export class Resource$Projects$Locations$Workflowtemplates { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1beta2/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE' }, options), @@ -1717,7 +1719,7 @@ export class Resource$Projects$Locations$Workflowtemplates { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1beta2/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), @@ -1769,7 +1771,7 @@ export class Resource$Projects$Locations$Workflowtemplates { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1beta2/{resource}:getIamPolicy') + url: (rootUrl + '/v1beta2/{+resource}:getIamPolicy') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -1830,7 +1832,7 @@ export class Resource$Projects$Locations$Workflowtemplates { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1beta2/{name}:instantiate') + url: (rootUrl + '/v1beta2/{+name}:instantiate') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -1895,7 +1897,7 @@ export class Resource$Projects$Locations$Workflowtemplates { options: Object.assign( { url: (rootUrl + - '/v1beta2/{parent}/workflowTemplates:instantiateInline') + '/v1beta2/{+parent}/workflowTemplates:instantiateInline') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -1954,7 +1956,7 @@ export class Resource$Projects$Locations$Workflowtemplates { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1beta2/{parent}/workflowTemplates') + url: (rootUrl + '/v1beta2/{+parent}/workflowTemplates') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -2009,7 +2011,7 @@ export class Resource$Projects$Locations$Workflowtemplates { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1beta2/{resource}:setIamPolicy') + url: (rootUrl + '/v1beta2/{+resource}:setIamPolicy') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -2070,7 +2072,7 @@ export class Resource$Projects$Locations$Workflowtemplates { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1beta2/{resource}:testIamPermissions') + url: (rootUrl + '/v1beta2/{+resource}:testIamPermissions') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -2126,7 +2128,7 @@ export class Resource$Projects$Locations$Workflowtemplates { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1beta2/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PUT' }, options), @@ -2442,7 +2444,7 @@ export class Resource$Projects$Regions$Clusters { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1beta2/{resource}:getIamPolicy') + url: (rootUrl + '/v1beta2/{+resource}:getIamPolicy') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -2616,7 +2618,7 @@ export class Resource$Projects$Regions$Clusters { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1beta2/{resource}:setIamPolicy') + url: (rootUrl + '/v1beta2/{+resource}:setIamPolicy') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -2677,7 +2679,7 @@ export class Resource$Projects$Regions$Clusters { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1beta2/{resource}:testIamPermissions') + url: (rootUrl + '/v1beta2/{+resource}:testIamPermissions') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -2906,7 +2908,7 @@ export class Resource$Projects$Regions$Jobs { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1beta2/{resource}:getIamPolicy') + url: (rootUrl + '/v1beta2/{+resource}:getIamPolicy') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -3077,7 +3079,7 @@ export class Resource$Projects$Regions$Jobs { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1beta2/{resource}:setIamPolicy') + url: (rootUrl + '/v1beta2/{+resource}:setIamPolicy') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -3192,7 +3194,7 @@ export class Resource$Projects$Regions$Jobs { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1beta2/{resource}:testIamPermissions') + url: (rootUrl + '/v1beta2/{+resource}:testIamPermissions') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -3263,7 +3265,7 @@ export class Resource$Projects$Regions$Operations { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1beta2/{name}:cancel') + url: (rootUrl + '/v1beta2/{+name}:cancel') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -3317,7 +3319,7 @@ export class Resource$Projects$Regions$Operations { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1beta2/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE' }, options), @@ -3369,7 +3371,7 @@ export class Resource$Projects$Regions$Operations { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1beta2/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), @@ -3421,7 +3423,7 @@ export class Resource$Projects$Regions$Operations { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1beta2/{resource}:getIamPolicy') + url: (rootUrl + '/v1beta2/{+resource}:getIamPolicy') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -3488,7 +3490,7 @@ export class Resource$Projects$Regions$Operations { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1beta2/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), @@ -3541,7 +3543,7 @@ export class Resource$Projects$Regions$Operations { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1beta2/{resource}:setIamPolicy') + url: (rootUrl + '/v1beta2/{+resource}:setIamPolicy') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -3602,7 +3604,7 @@ export class Resource$Projects$Regions$Operations { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1beta2/{resource}:testIamPermissions') + url: (rootUrl + '/v1beta2/{+resource}:testIamPermissions') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -3669,7 +3671,7 @@ export class Resource$Projects$Regions$Workflowtemplates { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1beta2/{parent}/workflowTemplates') + url: (rootUrl + '/v1beta2/{+parent}/workflowTemplates') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -3722,7 +3724,7 @@ export class Resource$Projects$Regions$Workflowtemplates { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1beta2/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE' }, options), @@ -3775,7 +3777,7 @@ export class Resource$Projects$Regions$Workflowtemplates { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1beta2/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), @@ -3827,7 +3829,7 @@ export class Resource$Projects$Regions$Workflowtemplates { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1beta2/{resource}:getIamPolicy') + url: (rootUrl + '/v1beta2/{+resource}:getIamPolicy') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -3888,7 +3890,7 @@ export class Resource$Projects$Regions$Workflowtemplates { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1beta2/{name}:instantiate') + url: (rootUrl + '/v1beta2/{+name}:instantiate') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -3953,7 +3955,7 @@ export class Resource$Projects$Regions$Workflowtemplates { options: Object.assign( { url: (rootUrl + - '/v1beta2/{parent}/workflowTemplates:instantiateInline') + '/v1beta2/{+parent}/workflowTemplates:instantiateInline') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -4012,7 +4014,7 @@ export class Resource$Projects$Regions$Workflowtemplates { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1beta2/{parent}/workflowTemplates') + url: (rootUrl + '/v1beta2/{+parent}/workflowTemplates') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -4067,7 +4069,7 @@ export class Resource$Projects$Regions$Workflowtemplates { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1beta2/{resource}:setIamPolicy') + url: (rootUrl + '/v1beta2/{+resource}:setIamPolicy') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -4128,7 +4130,7 @@ export class Resource$Projects$Regions$Workflowtemplates { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1beta2/{resource}:testIamPermissions') + url: (rootUrl + '/v1beta2/{+resource}:testIamPermissions') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -4184,7 +4186,7 @@ export class Resource$Projects$Regions$Workflowtemplates { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1beta2/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PUT' }, options), diff --git a/src/apis/datastore/v1.ts b/src/apis/datastore/v1.ts index 2c5cc0ead7..5d486f8251 100644 --- a/src/apis/datastore/v1.ts +++ b/src/apis/datastore/v1.ts @@ -166,9 +166,9 @@ export interface Schema$CompositeFilter { /** * 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 `{}`. + * 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 {} /** @@ -1104,15 +1104,15 @@ export interface Schema$RunQueryResponse { * 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. + * 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 { /** @@ -1765,7 +1765,7 @@ export class Resource$Projects$Operations { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, options), @@ -1818,7 +1818,7 @@ export class Resource$Projects$Operations { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE' }, options), @@ -1873,7 +1873,7 @@ export class Resource$Projects$Operations { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), @@ -1942,7 +1942,7 @@ export class Resource$Projects$Operations { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}/operations') + url: (rootUrl + '/v1/{+name}/operations') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, diff --git a/src/apis/datastore/v1beta1.ts b/src/apis/datastore/v1beta1.ts index 3bb73bf012..210433758e 100644 --- a/src/apis/datastore/v1beta1.ts +++ b/src/apis/datastore/v1beta1.ts @@ -459,15 +459,15 @@ export interface Schema$GoogleLongrunningOperation { * 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. + * 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 { /** diff --git a/src/apis/deploymentmanager/alpha.ts b/src/apis/deploymentmanager/alpha.ts index 3306d2dee3..8ff3ecde78 100644 --- a/src/apis/deploymentmanager/alpha.ts +++ b/src/apis/deploymentmanager/alpha.ts @@ -614,12 +614,12 @@ export interface Schema$LogConfigCloudAuditOptions { logName: string; } /** - * Increment a streamz counter with the specified metric and field names. - * Metric names should start with a '/', generally be lowercase-only, - * and end in "_count". Field names should not contain an initial - * slash. The actual exported metric names will have "/iam/policy" - * prepended. Field names correspond to IAM request parameters and field values - * are their respective values. At present the only supported field names are - + * Increment a streamz counter with the specified metric and field names. Metric + * names should start with a '/', generally be lowercase-only, and end + * in "_count". Field names should not contain an initial slash. The + * actual exported metric names will have "/iam/policy" prepended. + * Field names correspond to IAM request parameters and field values are their + * respective values. At present the only supported field names are - * "iam_principal", corresponding to IAMContext.principal; - * "" (empty string), resulting in one aggretated counter with no * field. Examples: counter { metric: "/debug_access_count" field: diff --git a/src/apis/deploymentmanager/v2.ts b/src/apis/deploymentmanager/v2.ts index 5b63f83ced..d3f180a14f 100644 --- a/src/apis/deploymentmanager/v2.ts +++ b/src/apis/deploymentmanager/v2.ts @@ -413,12 +413,12 @@ export interface Schema$LogConfigCloudAuditOptions { logName: string; } /** - * Increment a streamz counter with the specified metric and field names. - * Metric names should start with a '/', generally be lowercase-only, - * and end in "_count". Field names should not contain an initial - * slash. The actual exported metric names will have "/iam/policy" - * prepended. Field names correspond to IAM request parameters and field values - * are their respective values. At present the only supported field names are - + * Increment a streamz counter with the specified metric and field names. Metric + * names should start with a '/', generally be lowercase-only, and end + * in "_count". Field names should not contain an initial slash. The + * actual exported metric names will have "/iam/policy" prepended. + * Field names correspond to IAM request parameters and field values are their + * respective values. At present the only supported field names are - * "iam_principal", corresponding to IAMContext.principal; - * "" (empty string), resulting in one aggretated counter with no * field. Examples: counter { metric: "/debug_access_count" field: diff --git a/src/apis/deploymentmanager/v2beta.ts b/src/apis/deploymentmanager/v2beta.ts index 938f335e7a..c275d27e95 100644 --- a/src/apis/deploymentmanager/v2beta.ts +++ b/src/apis/deploymentmanager/v2beta.ts @@ -592,12 +592,12 @@ export interface Schema$LogConfigCloudAuditOptions { logName: string; } /** - * Increment a streamz counter with the specified metric and field names. - * Metric names should start with a '/', generally be lowercase-only, - * and end in "_count". Field names should not contain an initial - * slash. The actual exported metric names will have "/iam/policy" - * prepended. Field names correspond to IAM request parameters and field values - * are their respective values. At present the only supported field names are - + * Increment a streamz counter with the specified metric and field names. Metric + * names should start with a '/', generally be lowercase-only, and end + * in "_count". Field names should not contain an initial slash. The + * actual exported metric names will have "/iam/policy" prepended. + * Field names correspond to IAM request parameters and field values are their + * respective values. At present the only supported field names are - * "iam_principal", corresponding to IAMContext.principal; - * "" (empty string), resulting in one aggretated counter with no * field. Examples: counter { metric: "/debug_access_count" field: diff --git a/src/apis/dialogflow/v2.ts b/src/apis/dialogflow/v2.ts index 70088e069d..aec1b188c9 100644 --- a/src/apis/dialogflow/v2.ts +++ b/src/apis/dialogflow/v2.ts @@ -1031,10 +1031,10 @@ export interface Schema$GoogleCloudDialogflowV2beta1QueryResult { /** * The original conversational query text: - If natural language text was * provided as input, `query_text` contains a copy of the input. - If - * natural language speech audio was provided as input, `query_text` - * contains the speech recognition result. If speech recognizer produced - * multiple alternatives, a particular one is picked. - If an event was - * provided as input, `query_text` is not set. + * natural language speech audio was provided as input, `query_text` contains + * the speech recognition result. If speech recognizer produced multiple + * alternatives, a particular one is picked. - If an event was provided as + * input, `query_text` is not set. */ queryText: string; /** @@ -1304,9 +1304,9 @@ export interface Schema$GoogleCloudDialogflowV2ImportAgentRequest { * 'https://dialogflow.googleapis.com/v2/projects/<project_name>/agent:import\ * -X POST \ -H 'Authorization: Bearer '$(gcloud auth * print-access-token) \ -H 'Accept: application/json' \ -H - * 'Content-Type: application/json' \ --compressed \ - * --data-binary "{ 'agentContent': '$(cat <agent - * zip file> | base64 -w 0)' }" + * 'Content-Type: application/json' \ --compressed \ --data-binary + * "{ 'agentContent': '$(cat <agent zip file> | + * base64 -w 0)' }" */ agentContent: string; /** @@ -2074,10 +2074,10 @@ export interface Schema$GoogleCloudDialogflowV2QueryResult { /** * The original conversational query text: - If natural language text was * provided as input, `query_text` contains a copy of the input. - If - * natural language speech audio was provided as input, `query_text` - * contains the speech recognition result. If speech recognizer produced - * multiple alternatives, a particular one is picked. - If an event was - * provided as input, `query_text` is not set. + * natural language speech audio was provided as input, `query_text` contains + * the speech recognition result. If speech recognizer produced multiple + * alternatives, a particular one is picked. - If an event was provided as + * input, `query_text` is not set. */ queryText: string; /** @@ -2112,9 +2112,9 @@ export interface Schema$GoogleCloudDialogflowV2RestoreAgentRequest { * 'https://dialogflow.googleapis.com/v2/projects/<project_name>/agent:restore\ * -X POST \ -H 'Authorization: Bearer '$(gcloud auth * print-access-token) \ -H 'Accept: application/json' \ -H - * 'Content-Type: application/json' \ --compressed \ - * --data-binary "{ 'agentContent': '$(cat <agent - * zip file> | base64 -w 0)' }" \ + * 'Content-Type: application/json' \ --compressed \ --data-binary + * "{ 'agentContent': '$(cat <agent zip file> | + * base64 -w 0)' }" \ */ agentContent: string; /** @@ -2285,9 +2285,9 @@ export interface Schema$GoogleLongrunningOperation { /** * 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 `{}`. + * 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$GoogleProtobufEmpty {} /** @@ -2315,15 +2315,15 @@ export interface Schema$GoogleProtobufEmpty {} * 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. + * 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$GoogleRpcStatus { /** @@ -2415,7 +2415,8 @@ export class Resource$Projects { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2/{parent}/agent').replace(/([^:]\/)\/+/g, '$1'), + url: + (rootUrl + '/v2/{+parent}/agent').replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), @@ -2490,7 +2491,7 @@ export class Resource$Projects$Agent { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2/{parent}/agent:export') + url: (rootUrl + '/v2/{+parent}/agent:export') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -2513,8 +2514,8 @@ export class Resource$Projects$Agent { * @desc Imports the specified agent from a ZIP file. Uploads new intents and * entity types without deleting the existing ones. Intents and entity types * with the same name are replaced with the new versions from - * ImportAgentRequest. Operation + * ImportAgentRequest. Operation * @alias dialogflow.projects.agent.import * @memberOf! () * @@ -2533,7 +2534,7 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback(parameters, callback); } else { return createAPIRequest(parameters); @@ -2578,7 +2579,7 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback + * ImportAgentRequest. Operation * @alias dialogflow.projects.agent.import * @memberOf! () * @@ -2545,7 +2545,7 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback(parameters, callback); } else { return createAPIRequest(parameters); @@ -2590,7 +2590,7 @@ import(params?: any, options?: MethodOptions|BodyResponseCallbackGetting a Policy - * for more information. For the definitions of datasets and other genomics - * resources, see [Fundamentals of Google - * Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) + * for more information. * @example * * // BEFORE RUNNING: * // --------------- @@ -4512,7 +4474,7 @@ export class Resource$Datasets { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{resource}:getIamPolicy') + url: (rootUrl + '/v1/{+resource}:getIamPolicy') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -4532,9 +4494,7 @@ export class Resource$Datasets { /** * genomics.datasets.list - * @desc Lists datasets within a project. For the definitions of datasets and - * other genomics resources, see [Fundamentals of Google - * Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) + * @desc Lists datasets within a project. * @example * * // BEFORE RUNNING: * // --------------- @@ -4651,10 +4611,7 @@ export class Resource$Datasets { /** * genomics.datasets.patch - * @desc Updates a dataset. For the definitions of datasets and other - * genomics resources, see [Fundamentals of Google - * Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - * This method supports patch semantics. + * @desc Updates a dataset. This method supports patch semantics. * @example * * // BEFORE RUNNING: * // --------------- @@ -4768,11 +4725,9 @@ export class Resource$Datasets { /** * genomics.datasets.setIamPolicy * @desc Sets the access control policy on the specified dataset. Replaces any - * existing policy. For the definitions of datasets and other genomics - * resources, see [Fundamentals of Google - * Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - * See Setting a - * Policy for more information. + * existing policy. See Setting a Policy + * for more information. * @example * * // BEFORE RUNNING: * // --------------- @@ -4863,7 +4818,7 @@ export class Resource$Datasets { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{resource}:setIamPolicy') + url: (rootUrl + '/v1/{+resource}:setIamPolicy') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -4885,9 +4840,7 @@ export class Resource$Datasets { * genomics.datasets.testIamPermissions * @desc Returns permissions that a caller has on the specified resource. See * Testing - * Permissions for more information. For the definitions of datasets and - * other genomics resources, see [Fundamentals of Google - * Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) + * Permissions for more information. * @example * * // BEFORE RUNNING: * // --------------- @@ -4982,7 +4935,7 @@ export class Resource$Datasets { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{resource}:testIamPermissions') + url: (rootUrl + '/v1/{+resource}:testIamPermissions') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -5003,10 +4956,8 @@ export class Resource$Datasets { /** * genomics.datasets.undelete * @desc Undeletes a dataset by restoring a dataset which was deleted via this - * API. For the definitions of datasets and other genomics resources, see - * [Fundamentals of Google - * Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - * This operation is only possible for a week after the deletion occurred. + * API. This operation is only possible for a week after the deletion + * occurred. * @example * * // BEFORE RUNNING: * // --------------- @@ -5217,7 +5168,7 @@ export class Resource$Operations { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, options), @@ -5321,7 +5272,7 @@ export class Resource$Operations { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), @@ -5444,7 +5395,7 @@ export class Resource$Operations { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), @@ -5477,9 +5428,7 @@ export class Resource$Readgroupsets { /** * genomics.readgroupsets.delete - * @desc Deletes a read group set. For the definitions of read group sets and - * other genomics resources, see [Fundamentals of Google - * Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) + * @desc Deletes a read group set. * @example * * // BEFORE RUNNING: * // --------------- @@ -5582,13 +5531,10 @@ export class Resource$Readgroupsets { /** * genomics.readgroupsets.export - * @desc Exports a read group set to a BAM file in Google Cloud Storage. For - * the definitions of read group sets and other genomics resources, see - * [Fundamentals of Google - * Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - * Note that currently there may be some differences between exported BAM - * files and the original BAM file at the time of import. See - * ImportReadGroupSets for caveats. + * @desc Exports a read group set to a BAM file in Google Cloud Storage. Note + * that currently there may be some differences between exported BAM files and + * the original BAM file at the time of import. See ImportReadGroupSets for + * caveats. * @example * * // BEFORE RUNNING: * // --------------- @@ -5701,9 +5647,7 @@ export class Resource$Readgroupsets { /** * genomics.readgroupsets.get - * @desc Gets a read group set by ID. For the definitions of read group sets - * and other genomics resources, see [Fundamentals of Google - * Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) + * @desc Gets a read group set by ID. * @example * * // BEFORE RUNNING: * // --------------- @@ -5808,17 +5752,14 @@ export class Resource$Readgroupsets { /** * genomics.readgroupsets.import * @desc Creates read group sets by asynchronously importing the provided - * information. For the definitions of read group sets and other genomics - * resources, see [Fundamentals of Google - * Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - * The caller must have WRITE permissions to the dataset. ## Notes on - * [BAM](https://samtools.github.io/hts-specs/SAMv1.pdf) import - Tags will - * be converted to strings - tag types are not preserved - Comments (`@CO`) in - * the input file header will not be preserved - Original header order of - * references (`@SQ`) will not be preserved - Any reverse stranded unmapped - * reads will be reverse complemented, and their qualities (also the "BQ" and - * "OQ" tags, if any) will be reversed - Unmapped reads will be stripped of - * positional information (reference name and position) + * information. The caller must have WRITE permissions to the dataset. ## + * Notes on [BAM](https://samtools.github.io/hts-specs/SAMv1.pdf) import - + * Tags will be converted to strings - tag types are not preserved - Comments + * (`@CO`) in the input file header will not be preserved - Original header + * order of references (`@SQ`) will not be preserved - Any reverse stranded + * unmapped reads will be reverse complemented, and their qualities (also the + * "BQ" and "OQ" tags, if any) will be reversed - Unmapped reads will be + * stripped of positional information (reference name and position) * @example * * // BEFORE RUNNING: * // --------------- @@ -5897,7 +5838,7 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback/operations/` and can be used to track the * instance modification. The metadata field type is UpdateInstanceMetadata. * The response field type is Instance, if successful. Authorization requires @@ -2115,7 +2114,7 @@ export class Resource$Projects$Instances { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH' }, options), @@ -2169,7 +2168,7 @@ export class Resource$Projects$Instances { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{resource}:setIamPolicy') + url: (rootUrl + '/v1/{+resource}:setIamPolicy') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -2230,7 +2229,7 @@ export class Resource$Projects$Instances { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{resource}:testIamPermissions') + url: (rootUrl + '/v1/{+resource}:testIamPermissions') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -2304,7 +2303,7 @@ export class Resource$Projects$Instances$Databases { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{parent}/databases') + url: (rootUrl + '/v1/{+parent}/databases') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -2356,7 +2355,7 @@ export class Resource$Projects$Instances$Databases { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{database}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+database}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE' }, options), @@ -2406,7 +2405,7 @@ export class Resource$Projects$Instances$Databases { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), @@ -2463,7 +2462,8 @@ export class Resource$Projects$Instances$Databases { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{database}/ddl').replace(/([^:]\/)\/+/g, '$1'), + url: + (rootUrl + '/v1/{+database}/ddl').replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), @@ -2518,7 +2518,7 @@ export class Resource$Projects$Instances$Databases { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{resource}:getIamPolicy') + url: (rootUrl + '/v1/{+resource}:getIamPolicy') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -2576,7 +2576,7 @@ export class Resource$Projects$Instances$Databases { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{parent}/databases') + url: (rootUrl + '/v1/{+parent}/databases') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -2631,7 +2631,7 @@ export class Resource$Projects$Instances$Databases { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{resource}:setIamPolicy') + url: (rootUrl + '/v1/{+resource}:setIamPolicy') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -2692,7 +2692,7 @@ export class Resource$Projects$Instances$Databases { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{resource}:testIamPermissions') + url: (rootUrl + '/v1/{+resource}:testIamPermissions') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -2752,7 +2752,8 @@ export class Resource$Projects$Instances$Databases { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{database}/ddl').replace(/([^:]\/)\/+/g, '$1'), + url: + (rootUrl + '/v1/{+database}/ddl').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH' }, options), @@ -2821,7 +2822,7 @@ export class Resource$Projects$Instances$Databases$Operations { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, options), @@ -2874,7 +2875,7 @@ export class Resource$Projects$Instances$Databases$Operations { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE' }, options), @@ -2926,7 +2927,7 @@ export class Resource$Projects$Instances$Databases$Operations { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), @@ -2992,7 +2993,7 @@ export class Resource$Projects$Instances$Databases$Operations { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), @@ -3059,7 +3060,7 @@ export class Resource$Projects$Instances$Databases$Sessions { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{session}:beginTransaction') + url: (rootUrl + '/v1/{+session}:beginTransaction') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -3119,7 +3120,7 @@ export class Resource$Projects$Instances$Databases$Sessions { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{session}:commit') + url: (rootUrl + '/v1/{+session}:commit') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -3185,7 +3186,7 @@ export class Resource$Projects$Instances$Databases$Sessions { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{database}/sessions') + url: (rootUrl + '/v1/{+database}/sessions') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -3236,7 +3237,7 @@ export class Resource$Projects$Instances$Databases$Sessions { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE' }, options), @@ -3297,7 +3298,7 @@ export class Resource$Projects$Instances$Databases$Sessions { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{session}:executeSql') + url: (rootUrl + '/v1/{+session}:executeSql') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -3355,7 +3356,7 @@ export class Resource$Projects$Instances$Databases$Sessions { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{session}:executeStreamingSql') + url: (rootUrl + '/v1/{+session}:executeStreamingSql') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -3407,7 +3408,7 @@ export class Resource$Projects$Instances$Databases$Sessions { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), @@ -3463,7 +3464,7 @@ export class Resource$Projects$Instances$Databases$Sessions { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{database}/sessions') + url: (rootUrl + '/v1/{+database}/sessions') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -3485,8 +3486,8 @@ export class Resource$Projects$Instances$Databases$Sessions { * spanner.projects.instances.databases.sessions.partitionQuery * @desc Creates a set of partition tokens that can be used to execute a query * operation in parallel. Each of the returned partition tokens can be used - * by ExecuteStreamingSql to specify a subset of the query result to read. - * The same session and read-only transaction must be used by the + * by ExecuteStreamingSql to specify a subset of the query result to read. The + * same session and read-only transaction must be used by the * PartitionQueryRequest used to create the partition tokens and the * ExecuteSqlRequests that use the partition tokens. Partition tokens become * invalid when the session used to create them is deleted or begins a new @@ -3525,7 +3526,7 @@ export class Resource$Projects$Instances$Databases$Sessions { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{session}:partitionQuery') + url: (rootUrl + '/v1/{+session}:partitionQuery') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -3586,7 +3587,7 @@ export class Resource$Projects$Instances$Databases$Sessions { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{session}:partitionRead') + url: (rootUrl + '/v1/{+session}:partitionRead') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -3647,7 +3648,8 @@ export class Resource$Projects$Instances$Databases$Sessions { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{session}:read').replace(/([^:]\/)\/+/g, '$1'), + url: + (rootUrl + '/v1/{+session}:read').replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, options), @@ -3703,7 +3705,7 @@ export class Resource$Projects$Instances$Databases$Sessions { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{session}:rollback') + url: (rootUrl + '/v1/{+session}:rollback') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -3761,7 +3763,7 @@ export class Resource$Projects$Instances$Databases$Sessions { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{session}:streamingRead') + url: (rootUrl + '/v1/{+session}:streamingRead') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -3833,7 +3835,7 @@ export class Resource$Projects$Instances$Operations { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, options), @@ -3886,7 +3888,7 @@ export class Resource$Projects$Instances$Operations { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE' }, options), @@ -3938,7 +3940,7 @@ export class Resource$Projects$Instances$Operations { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), @@ -4004,7 +4006,7 @@ export class Resource$Projects$Instances$Operations { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), diff --git a/src/apis/speech/v1.ts b/src/apis/speech/v1.ts index 3e774b1c62..d4fc084ff3 100644 --- a/src/apis/speech/v1.ts +++ b/src/apis/speech/v1.ts @@ -297,15 +297,15 @@ export interface Schema$SpeechRecognitionResult { * 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. + * 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 { /** @@ -395,7 +395,7 @@ export class Resource$Operations { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/operations/{name}') + url: (rootUrl + '/v1/operations/{+name}') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, diff --git a/src/apis/speech/v1beta1.ts b/src/apis/speech/v1beta1.ts index 1dd3b7b886..779ad4068f 100644 --- a/src/apis/speech/v1beta1.ts +++ b/src/apis/speech/v1beta1.ts @@ -255,15 +255,15 @@ export interface Schema$SpeechRecognitionResult { * 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. + * 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 { /** @@ -356,7 +356,7 @@ export class Resource$Operations { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1beta1/operations/{name}') + url: (rootUrl + '/v1beta1/operations/{+name}') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, diff --git a/src/apis/storagetransfer/v1.ts b/src/apis/storagetransfer/v1.ts index 5fcbaf3970..f7f4e6fe44 100644 --- a/src/apis/storagetransfer/v1.ts +++ b/src/apis/storagetransfer/v1.ts @@ -84,8 +84,8 @@ export interface Schema$AwsAccessKey { secretAccessKey: string; } /** - * An AwsS3Data can be a data source, but not a data sink. In an AwsS3Data, an - * object's name is the S3 object's key name. + * An AwsS3Data resource can be a data source, but not a data sink. In an + * AwsS3Data resource, an object's name is the S3 object's key name. */ export interface Schema$AwsS3Data { /** @@ -129,9 +129,9 @@ export interface Schema$Date { /** * 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 `{}`. + * 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 {} /** @@ -166,9 +166,10 @@ export interface Schema$ErrorSummary { errorLogEntries: Schema$ErrorLogEntry[]; } /** - * In a GcsData, an object's name is the Google Cloud Storage object's - * name and its `lastModificationTime` refers to the object's updated time, - * which changes when the content or the metadata of the object is updated. + * In a GcsData resource, an object's name is the Google Cloud Storage + * object's name and its `lastModificationTime` refers to the object's + * updated time, which changes when the content or the metadata of the object is + * updated. */ export interface Schema$GcsData { /** @@ -188,9 +189,9 @@ export interface Schema$GoogleServiceAccount { accountEmail: string; } /** - * An HttpData specifies a list of objects on the web to be transferred over - * HTTP. The information of the objects to be transferred is contained in a - * file referenced by a URL. The first line in the file must be + * An HttpData resource specifies a list of objects on the web to be transferred + * over HTTP. The information of the objects to be transferred is contained in + * a file referenced by a URL. The first line in the file must be * "TsvHttpData-1.0", which specifies the format of the file. * Subsequent lines specify the information of the list of objects, one object * per list entry. Each entry has the following tab-delimited fields: * HTTP @@ -393,15 +394,15 @@ export interface Schema$Schedule { * 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. + * 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 { /** @@ -1030,7 +1031,7 @@ export class Resource$Transferjobs { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{jobName}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+jobName}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), @@ -1268,7 +1269,7 @@ export class Resource$Transferjobs { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{jobName}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+jobName}').replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH' }, options), @@ -1383,7 +1384,7 @@ export class Resource$Transferoperations { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, options), @@ -1484,7 +1485,7 @@ export class Resource$Transferoperations { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE' }, options), @@ -1590,7 +1591,7 @@ export class Resource$Transferoperations { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), @@ -1722,7 +1723,7 @@ export class Resource$Transferoperations { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), @@ -1829,7 +1830,7 @@ export class Resource$Transferoperations { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}:pause').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:pause').replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, options), @@ -1936,7 +1937,7 @@ export class Resource$Transferoperations { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}:resume').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:resume').replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, options), diff --git a/src/apis/streetviewpublish/v1.ts b/src/apis/streetviewpublish/v1.ts index 4c367334a5..2f112f338b 100644 --- a/src/apis/streetviewpublish/v1.ts +++ b/src/apis/streetviewpublish/v1.ts @@ -129,9 +129,9 @@ export interface Schema$Connection { /** * 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 `{}`. + * 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 {} /** @@ -372,15 +372,15 @@ export interface Schema$Pose { * 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. + * 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 { /** @@ -622,8 +622,8 @@ export class Resource$Photo { /** * streetviewpublish.photo.startUpload * @desc Creates an upload session to start uploading photo bytes. The upload - * URL of the returned UploadRef is used to upload the bytes for the Photo. - * In addition to the photo requirements shown in + * URL of the returned UploadRef is used to upload the bytes for the Photo. In + * addition to the photo requirements shown in * https://support.google.com/maps/answer/7012050?hl=en&ref_topic=6275604, the * photo must also meet the following requirements: * Photo Sphere XMP * metadata must be included in the photo medadata. See diff --git a/src/apis/tagmanager/v2.ts b/src/apis/tagmanager/v2.ts index 2d451c9da7..67f617405a 100644 --- a/src/apis/tagmanager/v2.ts +++ b/src/apis/tagmanager/v2.ts @@ -1029,12 +1029,12 @@ export interface Schema$TeardownTag { * we can convert to and from RFC 3339 date strings. See * [https://www.ietf.org/rfc/rfc3339.txt](https://www.ietf.org/rfc/rfc3339.txt). * # Examples Example 1: Compute Timestamp from POSIX `time()`. Timestamp - * timestamp; timestamp.set_seconds(time(NULL)); timestamp.set_nanos(0); - * Example 2: Compute Timestamp from POSIX `gettimeofday()`. struct timeval tv; + * timestamp; timestamp.set_seconds(time(NULL)); timestamp.set_nanos(0); Example + * 2: Compute Timestamp from POSIX `gettimeofday()`. struct timeval tv; * gettimeofday(&tv, NULL); Timestamp timestamp; * timestamp.set_seconds(tv.tv_sec); timestamp.set_nanos(tv.tv_usec * 1000); - * Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. - * FILETIME ft; GetSystemTimeAsFileTime(&ft); UINT64 ticks = + * Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. FILETIME + * ft; GetSystemTimeAsFileTime(&ft); UINT64 ticks = * (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; // A Windows * tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z // is 11644473600 * seconds before Unix epoch 1970-01-01T00:00:00Z. Timestamp timestamp; @@ -1634,7 +1634,7 @@ export class Resource$Accounts { const parameters = { options: Object.assign( { - url: (rootUrl + '/tagmanager/v2/{path}') + url: (rootUrl + '/tagmanager/v2/{+path}') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -1743,7 +1743,7 @@ export class Resource$Accounts { const parameters = { options: Object.assign( { - url: (rootUrl + '/tagmanager/v2/{path}') + url: (rootUrl + '/tagmanager/v2/{+path}') .replace(/([^:]\/)\/+/g, '$1'), method: 'PUT' }, @@ -1817,7 +1817,7 @@ export class Resource$Accounts$Containers { const parameters = { options: Object.assign( { - url: (rootUrl + '/tagmanager/v2/{parent}/containers') + url: (rootUrl + '/tagmanager/v2/{+parent}/containers') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -1867,7 +1867,7 @@ export class Resource$Accounts$Containers { const parameters = { options: Object.assign( { - url: (rootUrl + '/tagmanager/v2/{path}') + url: (rootUrl + '/tagmanager/v2/{+path}') .replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE' }, @@ -1918,7 +1918,7 @@ export class Resource$Accounts$Containers { const parameters = { options: Object.assign( { - url: (rootUrl + '/tagmanager/v2/{path}') + url: (rootUrl + '/tagmanager/v2/{+path}') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -1975,7 +1975,7 @@ export class Resource$Accounts$Containers { const parameters = { options: Object.assign( { - url: (rootUrl + '/tagmanager/v2/{parent}/containers') + url: (rootUrl + '/tagmanager/v2/{+parent}/containers') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -2030,7 +2030,7 @@ export class Resource$Accounts$Containers { const parameters = { options: Object.assign( { - url: (rootUrl + '/tagmanager/v2/{path}') + url: (rootUrl + '/tagmanager/v2/{+path}') .replace(/([^:]\/)\/+/g, '$1'), method: 'PUT' }, @@ -2096,7 +2096,7 @@ export class Resource$Accounts$Containers$Environments { const parameters = { options: Object.assign( { - url: (rootUrl + '/tagmanager/v2/{parent}/environments') + url: (rootUrl + '/tagmanager/v2/{+parent}/environments') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -2146,7 +2146,7 @@ export class Resource$Accounts$Containers$Environments { const parameters = { options: Object.assign( { - url: (rootUrl + '/tagmanager/v2/{path}') + url: (rootUrl + '/tagmanager/v2/{+path}') .replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE' }, @@ -2197,7 +2197,7 @@ export class Resource$Accounts$Containers$Environments { const parameters = { options: Object.assign( { - url: (rootUrl + '/tagmanager/v2/{path}') + url: (rootUrl + '/tagmanager/v2/{+path}') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -2254,7 +2254,7 @@ export class Resource$Accounts$Containers$Environments { const parameters = { options: Object.assign( { - url: (rootUrl + '/tagmanager/v2/{parent}/environments') + url: (rootUrl + '/tagmanager/v2/{+parent}/environments') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -2310,7 +2310,7 @@ export class Resource$Accounts$Containers$Environments { const parameters = { options: Object.assign( { - url: (rootUrl + '/tagmanager/v2/{path}') + url: (rootUrl + '/tagmanager/v2/{+path}') .replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH' }, @@ -2365,7 +2365,7 @@ export class Resource$Accounts$Containers$Environments { const parameters = { options: Object.assign( { - url: (rootUrl + '/tagmanager/v2/{path}:reauthorize') + url: (rootUrl + '/tagmanager/v2/{+path}:reauthorize') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -2421,7 +2421,7 @@ export class Resource$Accounts$Containers$Environments { const parameters = { options: Object.assign( { - url: (rootUrl + '/tagmanager/v2/{path}') + url: (rootUrl + '/tagmanager/v2/{+path}') .replace(/([^:]\/)\/+/g, '$1'), method: 'PUT' }, @@ -2483,7 +2483,7 @@ export class Resource$Accounts$Containers$Versions { const parameters = { options: Object.assign( { - url: (rootUrl + '/tagmanager/v2/{path}') + url: (rootUrl + '/tagmanager/v2/{+path}') .replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE' }, @@ -2536,7 +2536,7 @@ export class Resource$Accounts$Containers$Versions { const parameters = { options: Object.assign( { - url: (rootUrl + '/tagmanager/v2/{path}') + url: (rootUrl + '/tagmanager/v2/{+path}') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -2590,7 +2590,7 @@ export class Resource$Accounts$Containers$Versions { const parameters = { options: Object.assign( { - url: (rootUrl + '/tagmanager/v2/{parent}/versions:live') + url: (rootUrl + '/tagmanager/v2/{+parent}/versions:live') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -2648,7 +2648,7 @@ export class Resource$Accounts$Containers$Versions { const parameters = { options: Object.assign( { - url: (rootUrl + '/tagmanager/v2/{path}:publish') + url: (rootUrl + '/tagmanager/v2/{+path}:publish') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -2705,7 +2705,7 @@ export class Resource$Accounts$Containers$Versions { const parameters = { options: Object.assign( { - url: (rootUrl + '/tagmanager/v2/{path}:set_latest') + url: (rootUrl + '/tagmanager/v2/{+path}:set_latest') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -2759,7 +2759,7 @@ export class Resource$Accounts$Containers$Versions { const parameters = { options: Object.assign( { - url: (rootUrl + '/tagmanager/v2/{path}:undelete') + url: (rootUrl + '/tagmanager/v2/{+path}:undelete') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -2815,7 +2815,7 @@ export class Resource$Accounts$Containers$Versions { const parameters = { options: Object.assign( { - url: (rootUrl + '/tagmanager/v2/{path}') + url: (rootUrl + '/tagmanager/v2/{+path}') .replace(/([^:]\/)\/+/g, '$1'), method: 'PUT' }, @@ -2883,7 +2883,7 @@ export class Resource$Accounts$Containers$Version_headers { const parameters = { options: Object.assign( { - url: (rootUrl + '/tagmanager/v2/{parent}/version_headers:latest') + url: (rootUrl + '/tagmanager/v2/{+parent}/version_headers:latest') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -2942,7 +2942,7 @@ export class Resource$Accounts$Containers$Version_headers { const parameters = { options: Object.assign( { - url: (rootUrl + '/tagmanager/v2/{parent}/version_headers') + url: (rootUrl + '/tagmanager/v2/{+parent}/version_headers') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -3024,7 +3024,7 @@ export class Resource$Accounts$Containers$Workspaces { const parameters = { options: Object.assign( { - url: (rootUrl + '/tagmanager/v2/{parent}/workspaces') + url: (rootUrl + '/tagmanager/v2/{+parent}/workspaces') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -3084,7 +3084,7 @@ export class Resource$Accounts$Containers$Workspaces { const parameters = { options: Object.assign( { - url: (rootUrl + '/tagmanager/v2/{path}:create_version') + url: (rootUrl + '/tagmanager/v2/{+path}:create_version') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -3136,7 +3136,7 @@ export class Resource$Accounts$Containers$Workspaces { const parameters = { options: Object.assign( { - url: (rootUrl + '/tagmanager/v2/{path}') + url: (rootUrl + '/tagmanager/v2/{+path}') .replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE' }, @@ -3187,7 +3187,7 @@ export class Resource$Accounts$Containers$Workspaces { const parameters = { options: Object.assign( { - url: (rootUrl + '/tagmanager/v2/{path}') + url: (rootUrl + '/tagmanager/v2/{+path}') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -3241,7 +3241,7 @@ export class Resource$Accounts$Containers$Workspaces { const parameters = { options: Object.assign( { - url: (rootUrl + '/tagmanager/v2/{path}') + url: (rootUrl + '/tagmanager/v2/{+path}') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -3297,7 +3297,7 @@ export class Resource$Accounts$Containers$Workspaces { const parameters = { options: Object.assign( { - url: (rootUrl + '/tagmanager/v2/{path}/status') + url: (rootUrl + '/tagmanager/v2/{+path}/status') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -3354,7 +3354,7 @@ export class Resource$Accounts$Containers$Workspaces { const parameters = { options: Object.assign( { - url: (rootUrl + '/tagmanager/v2/{parent}/workspaces') + url: (rootUrl + '/tagmanager/v2/{+parent}/workspaces') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -3409,7 +3409,7 @@ export class Resource$Accounts$Containers$Workspaces { const parameters = { options: Object.assign( { - url: (rootUrl + '/tagmanager/v2/{path}:quick_preview') + url: (rootUrl + '/tagmanager/v2/{+path}:quick_preview') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -3462,7 +3462,7 @@ export class Resource$Accounts$Containers$Workspaces { const parameters = { options: Object.assign( { - url: (rootUrl + '/tagmanager/v2/{path}:resolve_conflict') + url: (rootUrl + '/tagmanager/v2/{+path}:resolve_conflict') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -3520,7 +3520,7 @@ export class Resource$Accounts$Containers$Workspaces { const parameters = { options: Object.assign( { - url: (rootUrl + '/tagmanager/v2/{path}:sync') + url: (rootUrl + '/tagmanager/v2/{+path}:sync') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -3575,7 +3575,7 @@ export class Resource$Accounts$Containers$Workspaces { const parameters = { options: Object.assign( { - url: (rootUrl + '/tagmanager/v2/{path}') + url: (rootUrl + '/tagmanager/v2/{+path}') .replace(/([^:]\/)\/+/g, '$1'), method: 'PUT' }, @@ -3630,7 +3630,7 @@ export class Resource$Accounts$Containers$Workspaces { const parameters = { options: Object.assign( { - url: (rootUrl + '/tagmanager/v2/{path}') + url: (rootUrl + '/tagmanager/v2/{+path}') .replace(/([^:]\/)\/+/g, '$1'), method: 'PUT' }, @@ -3699,7 +3699,7 @@ export class Resource$Accounts$Containers$Workspaces$Built_in_variables { const parameters = { options: Object.assign( { - url: (rootUrl + '/tagmanager/v2/{parent}/built_in_variables') + url: (rootUrl + '/tagmanager/v2/{+parent}/built_in_variables') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -3751,7 +3751,7 @@ export class Resource$Accounts$Containers$Workspaces$Built_in_variables { const parameters = { options: Object.assign( { - url: (rootUrl + '/tagmanager/v2/{path}') + url: (rootUrl + '/tagmanager/v2/{+path}') .replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE' }, @@ -3811,7 +3811,7 @@ export class Resource$Accounts$Containers$Workspaces$Built_in_variables { const parameters = { options: Object.assign( { - url: (rootUrl + '/tagmanager/v2/{parent}/built_in_variables') + url: (rootUrl + '/tagmanager/v2/{+parent}/built_in_variables') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -3871,7 +3871,7 @@ export class Resource$Accounts$Containers$Workspaces$Built_in_variables { const parameters = { options: Object.assign( { - url: (rootUrl + '/tagmanager/v2/{path}/built_in_variables:revert') + url: (rootUrl + '/tagmanager/v2/{+path}/built_in_variables:revert') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -3936,7 +3936,7 @@ export class Resource$Accounts$Containers$Workspaces$Folders { const parameters = { options: Object.assign( { - url: (rootUrl + '/tagmanager/v2/{parent}/folders') + url: (rootUrl + '/tagmanager/v2/{+parent}/folders') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -3986,7 +3986,7 @@ export class Resource$Accounts$Containers$Workspaces$Folders { const parameters = { options: Object.assign( { - url: (rootUrl + '/tagmanager/v2/{path}') + url: (rootUrl + '/tagmanager/v2/{+path}') .replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE' }, @@ -4041,7 +4041,7 @@ export class Resource$Accounts$Containers$Workspaces$Folders { const parameters = { options: Object.assign( { - url: (rootUrl + '/tagmanager/v2/{path}:entities') + url: (rootUrl + '/tagmanager/v2/{+path}:entities') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -4090,7 +4090,7 @@ export class Resource$Accounts$Containers$Workspaces$Folders { const parameters = { options: Object.assign( { - url: (rootUrl + '/tagmanager/v2/{path}') + url: (rootUrl + '/tagmanager/v2/{+path}') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -4145,7 +4145,7 @@ export class Resource$Accounts$Containers$Workspaces$Folders { const parameters = { options: Object.assign( { - url: (rootUrl + '/tagmanager/v2/{parent}/folders') + url: (rootUrl + '/tagmanager/v2/{+parent}/folders') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -4201,7 +4201,7 @@ export class Resource$Accounts$Containers$Workspaces$Folders { const parameters = { options: Object.assign( { - url: (rootUrl + '/tagmanager/v2/{path}:move_entities_to_folder') + url: (rootUrl + '/tagmanager/v2/{+path}:move_entities_to_folder') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -4256,7 +4256,7 @@ export class Resource$Accounts$Containers$Workspaces$Folders { const parameters = { options: Object.assign( { - url: (rootUrl + '/tagmanager/v2/{path}:revert') + url: (rootUrl + '/tagmanager/v2/{+path}:revert') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -4309,7 +4309,7 @@ export class Resource$Accounts$Containers$Workspaces$Folders { const parameters = { options: Object.assign( { - url: (rootUrl + '/tagmanager/v2/{path}') + url: (rootUrl + '/tagmanager/v2/{+path}') .replace(/([^:]\/)\/+/g, '$1'), method: 'PUT' }, @@ -4376,7 +4376,7 @@ export class Resource$Accounts$Containers$Workspaces$Proposal { const parameters = { options: Object.assign( { - url: (rootUrl + '/tagmanager/v2/{parent}/proposal') + url: (rootUrl + '/tagmanager/v2/{+parent}/proposal') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -4426,7 +4426,7 @@ export class Resource$Accounts$Containers$Workspaces$Proposal { const parameters = { options: Object.assign( { - url: (rootUrl + '/tagmanager/v2/{path}') + url: (rootUrl + '/tagmanager/v2/{+path}') .replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE' }, @@ -4490,7 +4490,7 @@ export class Resource$Accounts$Containers$Workspaces$Tags { const parameters = { options: Object.assign( { - url: (rootUrl + '/tagmanager/v2/{parent}/tags') + url: (rootUrl + '/tagmanager/v2/{+parent}/tags') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -4540,7 +4540,7 @@ export class Resource$Accounts$Containers$Workspaces$Tags { const parameters = { options: Object.assign( { - url: (rootUrl + '/tagmanager/v2/{path}') + url: (rootUrl + '/tagmanager/v2/{+path}') .replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE' }, @@ -4589,7 +4589,7 @@ export class Resource$Accounts$Containers$Workspaces$Tags { const parameters = { options: Object.assign( { - url: (rootUrl + '/tagmanager/v2/{path}') + url: (rootUrl + '/tagmanager/v2/{+path}') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -4644,7 +4644,7 @@ export class Resource$Accounts$Containers$Workspaces$Tags { const parameters = { options: Object.assign( { - url: (rootUrl + '/tagmanager/v2/{parent}/tags') + url: (rootUrl + '/tagmanager/v2/{+parent}/tags') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -4699,7 +4699,7 @@ export class Resource$Accounts$Containers$Workspaces$Tags { const parameters = { options: Object.assign( { - url: (rootUrl + '/tagmanager/v2/{path}:revert') + url: (rootUrl + '/tagmanager/v2/{+path}:revert') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -4752,7 +4752,7 @@ export class Resource$Accounts$Containers$Workspaces$Tags { const parameters = { options: Object.assign( { - url: (rootUrl + '/tagmanager/v2/{path}') + url: (rootUrl + '/tagmanager/v2/{+path}') .replace(/([^:]\/)\/+/g, '$1'), method: 'PUT' }, @@ -4818,7 +4818,7 @@ export class Resource$Accounts$Containers$Workspaces$Triggers { const parameters = { options: Object.assign( { - url: (rootUrl + '/tagmanager/v2/{parent}/triggers') + url: (rootUrl + '/tagmanager/v2/{+parent}/triggers') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -4868,7 +4868,7 @@ export class Resource$Accounts$Containers$Workspaces$Triggers { const parameters = { options: Object.assign( { - url: (rootUrl + '/tagmanager/v2/{path}') + url: (rootUrl + '/tagmanager/v2/{+path}') .replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE' }, @@ -4919,7 +4919,7 @@ export class Resource$Accounts$Containers$Workspaces$Triggers { const parameters = { options: Object.assign( { - url: (rootUrl + '/tagmanager/v2/{path}') + url: (rootUrl + '/tagmanager/v2/{+path}') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -4974,7 +4974,7 @@ export class Resource$Accounts$Containers$Workspaces$Triggers { const parameters = { options: Object.assign( { - url: (rootUrl + '/tagmanager/v2/{parent}/triggers') + url: (rootUrl + '/tagmanager/v2/{+parent}/triggers') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -5031,7 +5031,7 @@ export class Resource$Accounts$Containers$Workspaces$Triggers { const parameters = { options: Object.assign( { - url: (rootUrl + '/tagmanager/v2/{path}:revert') + url: (rootUrl + '/tagmanager/v2/{+path}:revert') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -5086,7 +5086,7 @@ export class Resource$Accounts$Containers$Workspaces$Triggers { const parameters = { options: Object.assign( { - url: (rootUrl + '/tagmanager/v2/{path}') + url: (rootUrl + '/tagmanager/v2/{+path}') .replace(/([^:]\/)\/+/g, '$1'), method: 'PUT' }, @@ -5152,7 +5152,7 @@ export class Resource$Accounts$Containers$Workspaces$Variables { const parameters = { options: Object.assign( { - url: (rootUrl + '/tagmanager/v2/{parent}/variables') + url: (rootUrl + '/tagmanager/v2/{+parent}/variables') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -5202,7 +5202,7 @@ export class Resource$Accounts$Containers$Workspaces$Variables { const parameters = { options: Object.assign( { - url: (rootUrl + '/tagmanager/v2/{path}') + url: (rootUrl + '/tagmanager/v2/{+path}') .replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE' }, @@ -5253,7 +5253,7 @@ export class Resource$Accounts$Containers$Workspaces$Variables { const parameters = { options: Object.assign( { - url: (rootUrl + '/tagmanager/v2/{path}') + url: (rootUrl + '/tagmanager/v2/{+path}') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -5310,7 +5310,7 @@ export class Resource$Accounts$Containers$Workspaces$Variables { const parameters = { options: Object.assign( { - url: (rootUrl + '/tagmanager/v2/{parent}/variables') + url: (rootUrl + '/tagmanager/v2/{+parent}/variables') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -5367,7 +5367,7 @@ export class Resource$Accounts$Containers$Workspaces$Variables { const parameters = { options: Object.assign( { - url: (rootUrl + '/tagmanager/v2/{path}:revert') + url: (rootUrl + '/tagmanager/v2/{+path}:revert') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -5422,7 +5422,7 @@ export class Resource$Accounts$Containers$Workspaces$Variables { const parameters = { options: Object.assign( { - url: (rootUrl + '/tagmanager/v2/{path}') + url: (rootUrl + '/tagmanager/v2/{+path}') .replace(/([^:]\/)\/+/g, '$1'), method: 'PUT' }, @@ -5491,7 +5491,7 @@ export class Resource$Accounts$User_permissions { const parameters = { options: Object.assign( { - url: (rootUrl + '/tagmanager/v2/{parent}/user_permissions') + url: (rootUrl + '/tagmanager/v2/{+parent}/user_permissions') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -5542,7 +5542,7 @@ export class Resource$Accounts$User_permissions { const parameters = { options: Object.assign( { - url: (rootUrl + '/tagmanager/v2/{path}') + url: (rootUrl + '/tagmanager/v2/{+path}') .replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE' }, @@ -5594,7 +5594,7 @@ export class Resource$Accounts$User_permissions { const parameters = { options: Object.assign( { - url: (rootUrl + '/tagmanager/v2/{path}') + url: (rootUrl + '/tagmanager/v2/{+path}') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -5653,7 +5653,7 @@ export class Resource$Accounts$User_permissions { const parameters = { options: Object.assign( { - url: (rootUrl + '/tagmanager/v2/{parent}/user_permissions') + url: (rootUrl + '/tagmanager/v2/{+parent}/user_permissions') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -5709,7 +5709,7 @@ export class Resource$Accounts$User_permissions { const parameters = { options: Object.assign( { - url: (rootUrl + '/tagmanager/v2/{path}') + url: (rootUrl + '/tagmanager/v2/{+path}') .replace(/([^:]\/)\/+/g, '$1'), method: 'PUT' }, diff --git a/src/apis/testing/v1.ts b/src/apis/testing/v1.ts index 4a593268ce..d751eea5da 100644 --- a/src/apis/testing/v1.ts +++ b/src/apis/testing/v1.ts @@ -29,7 +29,7 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: jsdoc-format /** - * Google Cloud Testing API + * Cloud Testing API * * Allows developers to run automated tests for their mobile applications on * Google infrastructure. @@ -505,7 +505,8 @@ export interface Schema$Date { */ day: number; /** - * Month of year. Must be from 1 to 12. + * Month of year. Must be from 1 to 12, or 0 if specifying a date without a + * month. */ month: number; /** diff --git a/src/apis/toolresults/v1beta3.ts b/src/apis/toolresults/v1beta3.ts index 3aa43919ad..b9d630d69e 100644 --- a/src/apis/toolresults/v1beta3.ts +++ b/src/apis/toolresults/v1beta3.ts @@ -1224,12 +1224,12 @@ export interface Schema$Thumbnail { * we can convert to and from RFC 3339 date strings. See * [https://www.ietf.org/rfc/rfc3339.txt](https://www.ietf.org/rfc/rfc3339.txt). * # Examples Example 1: Compute Timestamp from POSIX `time()`. Timestamp - * timestamp; timestamp.set_seconds(time(NULL)); timestamp.set_nanos(0); - * Example 2: Compute Timestamp from POSIX `gettimeofday()`. struct timeval tv; + * timestamp; timestamp.set_seconds(time(NULL)); timestamp.set_nanos(0); Example + * 2: Compute Timestamp from POSIX `gettimeofday()`. struct timeval tv; * gettimeofday(&tv, NULL); Timestamp timestamp; * timestamp.set_seconds(tv.tv_sec); timestamp.set_nanos(tv.tv_usec * 1000); - * Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. - * FILETIME ft; GetSystemTimeAsFileTime(&ft); UINT64 ticks = + * Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. FILETIME + * ft; GetSystemTimeAsFileTime(&ft); UINT64 ticks = * (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; // A Windows * tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z // is 11644473600 * seconds before Unix epoch 1970-01-01T00:00:00Z. Timestamp timestamp; diff --git a/src/apis/tpu/v1alpha1.ts b/src/apis/tpu/v1alpha1.ts index 062aad9d08..021ab09c40 100644 --- a/src/apis/tpu/v1alpha1.ts +++ b/src/apis/tpu/v1alpha1.ts @@ -79,9 +79,9 @@ export interface Schema$AcceleratorType { /** * 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 `{}`. + * 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 {} /** @@ -390,15 +390,15 @@ export interface Schema$StartNodeRequest {} * 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. + * 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 { /** @@ -503,7 +503,7 @@ export class Resource$Projects$Locations { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1alpha1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), @@ -561,7 +561,7 @@ export class Resource$Projects$Locations { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1alpha1/{name}/locations') + url: (rootUrl + '/v1alpha1/{+name}/locations') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -624,7 +624,7 @@ export class Resource$Projects$Locations$Acceleratortypes { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1alpha1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), @@ -684,7 +684,7 @@ export class Resource$Projects$Locations$Acceleratortypes { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1alpha1/{parent}/acceleratorTypes') + url: (rootUrl + '/v1alpha1/{+parent}/acceleratorTypes') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -752,7 +752,7 @@ export class Resource$Projects$Locations$Nodes { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1alpha1/{parent}/nodes') + url: (rootUrl + '/v1alpha1/{+parent}/nodes') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -805,7 +805,7 @@ export class Resource$Projects$Locations$Nodes { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1alpha1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE' }, options), @@ -853,7 +853,7 @@ export class Resource$Projects$Locations$Nodes { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1alpha1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), @@ -908,7 +908,7 @@ export class Resource$Projects$Locations$Nodes { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1alpha1/{parent}/nodes') + url: (rootUrl + '/v1alpha1/{+parent}/nodes') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -963,7 +963,7 @@ export class Resource$Projects$Locations$Nodes { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1alpha1/{name}:reimage') + url: (rootUrl + '/v1alpha1/{+name}:reimage') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -1017,7 +1017,7 @@ export class Resource$Projects$Locations$Nodes { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1alpha1/{name}:reset') + url: (rootUrl + '/v1alpha1/{+name}:reset') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -1071,7 +1071,7 @@ export class Resource$Projects$Locations$Nodes { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1alpha1/{name}:start') + url: (rootUrl + '/v1alpha1/{+name}:start') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -1125,7 +1125,7 @@ export class Resource$Projects$Locations$Nodes { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1alpha1/{name}:stop') + url: (rootUrl + '/v1alpha1/{+name}:stop') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -1196,7 +1196,7 @@ export class Resource$Projects$Locations$Operations { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1alpha1/{name}:cancel') + url: (rootUrl + '/v1alpha1/{+name}:cancel') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -1250,7 +1250,7 @@ export class Resource$Projects$Locations$Operations { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1alpha1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE' }, options), @@ -1302,7 +1302,7 @@ export class Resource$Projects$Locations$Operations { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1alpha1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), @@ -1368,7 +1368,7 @@ export class Resource$Projects$Locations$Operations { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1alpha1/{name}/operations') + url: (rootUrl + '/v1alpha1/{+name}/operations') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -1432,7 +1432,7 @@ export class Resource$Projects$Locations$Tensorflowversions { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1alpha1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), @@ -1492,7 +1492,7 @@ export class Resource$Projects$Locations$Tensorflowversions { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1alpha1/{parent}/tensorflowVersions') + url: (rootUrl + '/v1alpha1/{+parent}/tensorflowVersions') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, diff --git a/src/apis/vault/v1.ts b/src/apis/vault/v1.ts index 629e643df0..b534898af4 100644 --- a/src/apis/vault/v1.ts +++ b/src/apis/vault/v1.ts @@ -121,9 +121,9 @@ export interface Schema$CorpusQuery { /** * 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 `{}`. + * 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 {} /** diff --git a/src/apis/videointelligence/v1beta1.ts b/src/apis/videointelligence/v1beta1.ts index 4e52b6a1ec..0887348655 100644 --- a/src/apis/videointelligence/v1beta1.ts +++ b/src/apis/videointelligence/v1beta1.ts @@ -1117,15 +1117,15 @@ export interface Schema$GoogleLongrunning_Operation { * 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. + * Workflow errors. A typical workflow has multiple steps. Each step may have a + * `Status` message for error reporting. - Batch operations. If a client uses + * batch request and batch response, the `Status` message should be used + * directly inside batch response, one for each error sub-response. - + * Asynchronous operations. If an API call embeds asynchronous operation results + * in its response, the status of those operations should be represented + * directly using the `Status` message. - Logging. If some API errors are + * stored in logs, the message `Status` could be used directly after any + * stripping needed for security/privacy reasons. */ export interface Schema$GoogleRpc_Status { /** diff --git a/src/apis/vision/v1.ts b/src/apis/vision/v1.ts index ba2ca86ffa..f24ee04ffd 100644 --- a/src/apis/vision/v1.ts +++ b/src/apis/vision/v1.ts @@ -212,48 +212,48 @@ export interface Schema$CancelOperationRequest {} * little work, it can be easily formatted into a CSS "rgba()" string * in JavaScript, as well. Here are some examples: Example (Java): import * com.google.type.Color; // ... public static java.awt.Color - * fromProto(Color protocolor) { float alpha = protocolor.hasAlpha() - * ? protocolor.getAlpha().getValue() : 1.0; return new - * java.awt.Color( protocolor.getRed(), - * protocolor.getGreen(), protocolor.getBlue(), alpha); - * } public static Color toProto(java.awt.Color color) { float red - * = (float) color.getRed(); float green = (float) color.getGreen(); - * float blue = (float) color.getBlue(); float denominator = 255.0; - * Color.Builder resultBuilder = Color .newBuilder() - * .setRed(red / denominator) .setGreen(green / denominator) - * .setBlue(blue / denominator); int alpha = color.getAlpha(); if - * (alpha != 255) { result.setAlpha( FloatValue - * .newBuilder() .setValue(((float) alpha) / denominator) - * .build()); } return resultBuilder.build(); } // ... - * Example (iOS / Obj-C): // ... static UIColor* fromProto(Color* - * protocolor) { float red = [protocolor red]; float green = - * [protocolor green]; float blue = [protocolor blue]; - * FloatValue* alpha_wrapper = [protocolor alpha]; float alpha = 1.0; - * if (alpha_wrapper != nil) { alpha = [alpha_wrapper value]; - * } return [UIColor colorWithRed:red green:green blue:blue - * alpha:alpha]; } static Color* toProto(UIColor* color) { - * CGFloat red, green, blue, alpha; if (![color getRed:&red - * green:&green blue:&blue alpha:&alpha]) { return nil; - * } Color* result = [Color alloc] init]; [result setRed:red]; - * [result setGreen:green]; [result setBlue:blue]; if (alpha - * <= 0.9999) { [result setAlpha:floatWrapperWithValue(alpha)]; - * } [result autorelease]; return result; } // ... - * Example (JavaScript): // ... var protoToCssColor = - * function(rgb_color) { var redFrac = rgb_color.red || 0.0; var - * greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || - * 0.0; var red = Math.floor(redFrac * 255); var green = - * Math.floor(greenFrac * 255); var blue = Math.floor(blueFrac * 255); - * if (!('alpha' in rgb_color)) { return rgbToCssColor_(red, - * green, blue); } var alphaFrac = rgb_color.alpha.value || 0.0; - * var rgbParams = [red, green, blue].join(','); return - * ['rgba(', rgbParams, ',', alphaFrac, - * ')'].join(''); }; var rgbToCssColor_ = function(red, - * green, blue) { var rgbNumber = new Number((red << 16) | (green - * << 8) | blue); var hexString = rgbNumber.toString(16); var - * missingZeros = 6 - hexString.length; var resultBuilder = ['#']; - * for (var i = 0; i < missingZeros; i++) { - * resultBuilder.push('0'); } resultBuilder.push(hexString); - * return resultBuilder.join(''); }; // ... + * fromProto(Color protocolor) { float alpha = protocolor.hasAlpha() ? + * protocolor.getAlpha().getValue() : 1.0; return new + * java.awt.Color( protocolor.getRed(), protocolor.getGreen(), + * protocolor.getBlue(), alpha); } public static Color + * toProto(java.awt.Color color) { float red = (float) color.getRed(); + * float green = (float) color.getGreen(); float blue = (float) + * color.getBlue(); float denominator = 255.0; Color.Builder + * resultBuilder = Color .newBuilder() .setRed(red / + * denominator) .setGreen(green / denominator) .setBlue(blue / + * denominator); int alpha = color.getAlpha(); if (alpha != 255) { + * result.setAlpha( FloatValue .newBuilder() + * .setValue(((float) alpha) / denominator) .build()); } + * return resultBuilder.build(); } // ... Example (iOS / Obj-C): // + * ... static UIColor* fromProto(Color* protocolor) { float red = + * [protocolor red]; float green = [protocolor green]; float + * blue = [protocolor blue]; FloatValue* alpha_wrapper = [protocolor + * alpha]; float alpha = 1.0; if (alpha_wrapper != nil) { alpha + * = [alpha_wrapper value]; } return [UIColor colorWithRed:red + * green:green blue:blue alpha:alpha]; } static Color* + * toProto(UIColor* color) { CGFloat red, green, blue, alpha; if + * (![color getRed:&red green:&green blue:&blue alpha:&alpha]) { + * return nil; } Color* result = [Color alloc] init]; [result + * setRed:red]; [result setGreen:green]; [result + * setBlue:blue]; if (alpha <= 0.9999) { [result + * setAlpha:floatWrapperWithValue(alpha)]; } [result + * autorelease]; return result; } // ... Example + * (JavaScript): // ... var protoToCssColor = function(rgb_color) { + * var redFrac = rgb_color.red || 0.0; var greenFrac = rgb_color.green || + * 0.0; var blueFrac = rgb_color.blue || 0.0; var red = + * Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255); + * var blue = Math.floor(blueFrac * 255); if (!('alpha' in + * rgb_color)) { return rgbToCssColor_(red, green, blue); } var + * alphaFrac = rgb_color.alpha.value || 0.0; var rgbParams = [red, green, + * blue].join(','); return ['rgba(', rgbParams, + * ',', alphaFrac, ')'].join(''); }; var + * rgbToCssColor_ = function(red, green, blue) { var rgbNumber = new + * Number((red << 16) | (green << 8) | blue); var hexString = + * rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var + * resultBuilder = ['#']; for (var i = 0; i < missingZeros; + * i++) { resultBuilder.push('0'); } + * resultBuilder.push(hexString); return resultBuilder.join(''); + * }; // ... */ export interface Schema$Color { /** @@ -381,9 +381,9 @@ export interface Schema$DominantColorsAnnotation { /** * 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 `{}`. + * 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 {} /** @@ -603,8 +603,8 @@ export interface Schema$GoogleCloudVisionV1p2beta1OperationMetadata { export interface Schema$GoogleCloudVisionV1p2beta1OutputConfig { /** * The max number of response protos to put into each output JSON file on GCS. - * The valid range is [1, 100]. If not specified, the default value is 20. - * For example, for one pdf file with 100 pages, 100 response protos will be + * The valid range is [1, 100]. If not specified, the default value is 20. For + * example, for one pdf file with 100 pages, 100 response protos will be * generated. If `batch_size` = 20, then 5 json files each containing 20 * response protos will be written under the prefix `gcs_destination`.`uri`. * Currently, batch_size only applies to GcsDestination, with potential future @@ -685,13 +685,13 @@ export interface Schema$ImageSource { * The URI of the source image. Can be either: 1. A Google Cloud Storage URI * of the form `gs://bucket_name/object_name`. Object versioning is not * supported. See [Google Cloud Storage Request - * URIs](https://cloud.google.com/storage/docs/reference-uris) for more - * info. 2. A publicly-accessible image HTTP/HTTPS URL. When fetching images - * from HTTP/HTTPS URLs, Google cannot guarantee that the request will be - * completed. Your request may fail if the specified host denies the - * request (e.g. due to request throttling or DOS prevention), or if Google - * throttles requests to the site for abuse prevention. You should not - * depend on externally-hosted images for production applications. When both + * URIs](https://cloud.google.com/storage/docs/reference-uris) for more info. + * 2. A publicly-accessible image HTTP/HTTPS URL. When fetching images from + * HTTP/HTTPS URLs, Google cannot guarantee that the request will be + * completed. Your request may fail if the specified host denies the request + * (e.g. due to request throttling or DOS prevention), or if Google throttles + * requests to the site for abuse prevention. You should not depend on + * externally-hosted images for production applications. When both * `gcs_image_uri` and `image_uri` are specified, `image_uri` takes * precedence. */ @@ -949,15 +949,15 @@ export interface Schema$SafeSearchAnnotation { * 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. + * 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 { /** @@ -985,10 +985,10 @@ export interface Schema$Symbol { * top-right, bottom-right, bottom-left. When a rotation of the bounding box * is detected the rotation is represented as around the top-left corner as * defined when the text is read in the 'natural' orientation. For - * example: * when the text is horizontal it might look like: 0----1 - * | | 3----2 * when it's rotated 180 degrees around the - * top-left corner it becomes: 2----3 | | 1----0 and the - * vertice order will still be (0, 1, 2, 3). + * example: * when the text is horizontal it might look like: 0----1 | + * | 3----2 * when it's rotated 180 degrees around the top-left + * corner it becomes: 2----3 | | 1----0 and the vertice + * order will still be (0, 1, 2, 3). */ boundingBox: Schema$BoundingPoly; /** @@ -1006,9 +1006,9 @@ export interface Schema$Symbol { } /** * TextAnnotation contains a structured representation of OCR extracted text. - * The hierarchy of an OCR extracted text structure is like this: - * TextAnnotation -> Page -> Block -> Paragraph -> Word -> Symbol - * Each structural component, starting from Page, may further have their own + * The hierarchy of an OCR extracted text structure is like this: TextAnnotation + * -> Page -> Block -> Paragraph -> Word -> Symbol Each + * structural component, starting from Page, may further have their own * properties. Properties describe detected languages, breaks etc.. Please refer * to the TextAnnotation.TextProperty message definition below for more detail. */ @@ -1173,10 +1173,10 @@ export interface Schema$Word { * top-right, bottom-right, bottom-left. When a rotation of the bounding box * is detected the rotation is represented as around the top-left corner as * defined when the text is read in the 'natural' orientation. For - * example: * when the text is horizontal it might look like: 0----1 - * | | 3----2 * when it's rotated 180 degrees around the - * top-left corner it becomes: 2----3 | | 1----0 and the - * vertice order will still be (0, 1, 2, 3). + * example: * when the text is horizontal it might look like: 0----1 | + * | 3----2 * when it's rotated 180 degrees around the top-left + * corner it becomes: 2----3 | | 1----0 and the vertice + * order will still be (0, 1, 2, 3). */ boundingBox: Schema$BoundingPoly; /** @@ -1377,7 +1377,7 @@ export class Resource$Locations$Operations { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), @@ -1449,7 +1449,7 @@ export class Resource$Operations { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, options), @@ -1502,7 +1502,7 @@ export class Resource$Operations { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE' }, options), @@ -1554,7 +1554,7 @@ export class Resource$Operations { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), @@ -1620,7 +1620,7 @@ export class Resource$Operations { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), diff --git a/src/apis/vision/v1p1beta1.ts b/src/apis/vision/v1p1beta1.ts index 517d42e511..c6d855f442 100644 --- a/src/apis/vision/v1p1beta1.ts +++ b/src/apis/vision/v1p1beta1.ts @@ -75,48 +75,48 @@ export class Vision { * little work, it can be easily formatted into a CSS "rgba()" string * in JavaScript, as well. Here are some examples: Example (Java): import * com.google.type.Color; // ... public static java.awt.Color - * fromProto(Color protocolor) { float alpha = protocolor.hasAlpha() - * ? protocolor.getAlpha().getValue() : 1.0; return new - * java.awt.Color( protocolor.getRed(), - * protocolor.getGreen(), protocolor.getBlue(), alpha); - * } public static Color toProto(java.awt.Color color) { float red - * = (float) color.getRed(); float green = (float) color.getGreen(); - * float blue = (float) color.getBlue(); float denominator = 255.0; - * Color.Builder resultBuilder = Color .newBuilder() - * .setRed(red / denominator) .setGreen(green / denominator) - * .setBlue(blue / denominator); int alpha = color.getAlpha(); if - * (alpha != 255) { result.setAlpha( FloatValue - * .newBuilder() .setValue(((float) alpha) / denominator) - * .build()); } return resultBuilder.build(); } // ... - * Example (iOS / Obj-C): // ... static UIColor* fromProto(Color* - * protocolor) { float red = [protocolor red]; float green = - * [protocolor green]; float blue = [protocolor blue]; - * FloatValue* alpha_wrapper = [protocolor alpha]; float alpha = 1.0; - * if (alpha_wrapper != nil) { alpha = [alpha_wrapper value]; - * } return [UIColor colorWithRed:red green:green blue:blue - * alpha:alpha]; } static Color* toProto(UIColor* color) { - * CGFloat red, green, blue, alpha; if (![color getRed:&red - * green:&green blue:&blue alpha:&alpha]) { return nil; - * } Color* result = [Color alloc] init]; [result setRed:red]; - * [result setGreen:green]; [result setBlue:blue]; if (alpha - * <= 0.9999) { [result setAlpha:floatWrapperWithValue(alpha)]; - * } [result autorelease]; return result; } // ... - * Example (JavaScript): // ... var protoToCssColor = - * function(rgb_color) { var redFrac = rgb_color.red || 0.0; var - * greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || - * 0.0; var red = Math.floor(redFrac * 255); var green = - * Math.floor(greenFrac * 255); var blue = Math.floor(blueFrac * 255); - * if (!('alpha' in rgb_color)) { return rgbToCssColor_(red, - * green, blue); } var alphaFrac = rgb_color.alpha.value || 0.0; - * var rgbParams = [red, green, blue].join(','); return - * ['rgba(', rgbParams, ',', alphaFrac, - * ')'].join(''); }; var rgbToCssColor_ = function(red, - * green, blue) { var rgbNumber = new Number((red << 16) | (green - * << 8) | blue); var hexString = rgbNumber.toString(16); var - * missingZeros = 6 - hexString.length; var resultBuilder = ['#']; - * for (var i = 0; i < missingZeros; i++) { - * resultBuilder.push('0'); } resultBuilder.push(hexString); - * return resultBuilder.join(''); }; // ... + * fromProto(Color protocolor) { float alpha = protocolor.hasAlpha() ? + * protocolor.getAlpha().getValue() : 1.0; return new + * java.awt.Color( protocolor.getRed(), protocolor.getGreen(), + * protocolor.getBlue(), alpha); } public static Color + * toProto(java.awt.Color color) { float red = (float) color.getRed(); + * float green = (float) color.getGreen(); float blue = (float) + * color.getBlue(); float denominator = 255.0; Color.Builder + * resultBuilder = Color .newBuilder() .setRed(red / + * denominator) .setGreen(green / denominator) .setBlue(blue / + * denominator); int alpha = color.getAlpha(); if (alpha != 255) { + * result.setAlpha( FloatValue .newBuilder() + * .setValue(((float) alpha) / denominator) .build()); } + * return resultBuilder.build(); } // ... Example (iOS / Obj-C): // + * ... static UIColor* fromProto(Color* protocolor) { float red = + * [protocolor red]; float green = [protocolor green]; float + * blue = [protocolor blue]; FloatValue* alpha_wrapper = [protocolor + * alpha]; float alpha = 1.0; if (alpha_wrapper != nil) { alpha + * = [alpha_wrapper value]; } return [UIColor colorWithRed:red + * green:green blue:blue alpha:alpha]; } static Color* + * toProto(UIColor* color) { CGFloat red, green, blue, alpha; if + * (![color getRed:&red green:&green blue:&blue alpha:&alpha]) { + * return nil; } Color* result = [Color alloc] init]; [result + * setRed:red]; [result setGreen:green]; [result + * setBlue:blue]; if (alpha <= 0.9999) { [result + * setAlpha:floatWrapperWithValue(alpha)]; } [result + * autorelease]; return result; } // ... Example + * (JavaScript): // ... var protoToCssColor = function(rgb_color) { + * var redFrac = rgb_color.red || 0.0; var greenFrac = rgb_color.green || + * 0.0; var blueFrac = rgb_color.blue || 0.0; var red = + * Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255); + * var blue = Math.floor(blueFrac * 255); if (!('alpha' in + * rgb_color)) { return rgbToCssColor_(red, green, blue); } var + * alphaFrac = rgb_color.alpha.value || 0.0; var rgbParams = [red, green, + * blue].join(','); return ['rgba(', rgbParams, + * ',', alphaFrac, ')'].join(''); }; var + * rgbToCssColor_ = function(red, green, blue) { var rgbNumber = new + * Number((red << 16) | (green << 8) | blue); var hexString = + * rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var + * resultBuilder = ['#']; for (var i = 0; i < missingZeros; + * i++) { resultBuilder.push('0'); } + * resultBuilder.push(hexString); return resultBuilder.join(''); + * }; // ... */ export interface Schema$Color { /** @@ -582,13 +582,13 @@ export interface Schema$GoogleCloudVisionV1p1beta1ImageSource { * The URI of the source image. Can be either: 1. A Google Cloud Storage URI * of the form `gs://bucket_name/object_name`. Object versioning is not * supported. See [Google Cloud Storage Request - * URIs](https://cloud.google.com/storage/docs/reference-uris) for more - * info. 2. A publicly-accessible image HTTP/HTTPS URL. When fetching images - * from HTTP/HTTPS URLs, Google cannot guarantee that the request will be - * completed. Your request may fail if the specified host denies the - * request (e.g. due to request throttling or DOS prevention), or if Google - * throttles requests to the site for abuse prevention. You should not - * depend on externally-hosted images for production applications. When both + * URIs](https://cloud.google.com/storage/docs/reference-uris) for more info. + * 2. A publicly-accessible image HTTP/HTTPS URL. When fetching images from + * HTTP/HTTPS URLs, Google cannot guarantee that the request will be + * completed. Your request may fail if the specified host denies the request + * (e.g. due to request throttling or DOS prevention), or if Google throttles + * requests to the site for abuse prevention. You should not depend on + * externally-hosted images for production applications. When both * `gcs_image_uri` and `image_uri` are specified, `image_uri` takes * precedence. */ @@ -748,10 +748,10 @@ export interface Schema$GoogleCloudVisionV1p1beta1Symbol { * top-right, bottom-right, bottom-left. When a rotation of the bounding box * is detected the rotation is represented as around the top-left corner as * defined when the text is read in the 'natural' orientation. For - * example: * when the text is horizontal it might look like: 0----1 - * | | 3----2 * when it's rotated 180 degrees around the - * top-left corner it becomes: 2----3 | | 1----0 and the - * vertice order will still be (0, 1, 2, 3). + * example: * when the text is horizontal it might look like: 0----1 | + * | 3----2 * when it's rotated 180 degrees around the top-left + * corner it becomes: 2----3 | | 1----0 and the vertice + * order will still be (0, 1, 2, 3). */ boundingBox: Schema$GoogleCloudVisionV1p1beta1BoundingPoly; /** @@ -769,9 +769,9 @@ export interface Schema$GoogleCloudVisionV1p1beta1Symbol { } /** * TextAnnotation contains a structured representation of OCR extracted text. - * The hierarchy of an OCR extracted text structure is like this: - * TextAnnotation -> Page -> Block -> Paragraph -> Word -> Symbol - * Each structural component, starting from Page, may further have their own + * The hierarchy of an OCR extracted text structure is like this: TextAnnotation + * -> Page -> Block -> Paragraph -> Word -> Symbol Each + * structural component, starting from Page, may further have their own * properties. Properties describe detected languages, breaks etc.. Please refer * to the TextAnnotation.TextProperty message definition below for more detail. */ @@ -969,10 +969,10 @@ export interface Schema$GoogleCloudVisionV1p1beta1Word { * top-right, bottom-right, bottom-left. When a rotation of the bounding box * is detected the rotation is represented as around the top-left corner as * defined when the text is read in the 'natural' orientation. For - * example: * when the text is horizontal it might look like: 0----1 - * | | 3----2 * when it's rotated 180 degrees around the - * top-left corner it becomes: 2----3 | | 1----0 and the - * vertice order will still be (0, 1, 2, 3). + * example: * when the text is horizontal it might look like: 0----1 | + * | 3----2 * when it's rotated 180 degrees around the top-left + * corner it becomes: 2----3 | | 1----0 and the vertice + * order will still be (0, 1, 2, 3). */ boundingBox: Schema$GoogleCloudVisionV1p1beta1BoundingPoly; /** @@ -1048,8 +1048,8 @@ export interface Schema$GoogleCloudVisionV1p2beta1OperationMetadata { export interface Schema$GoogleCloudVisionV1p2beta1OutputConfig { /** * The max number of response protos to put into each output JSON file on GCS. - * The valid range is [1, 100]. If not specified, the default value is 20. - * For example, for one pdf file with 100 pages, 100 response protos will be + * The valid range is [1, 100]. If not specified, the default value is 20. For + * example, for one pdf file with 100 pages, 100 response protos will be * generated. If `batch_size` = 20, then 5 json files each containing 20 * response protos will be written under the prefix `gcs_destination`.`uri`. * Currently, batch_size only applies to GcsDestination, with potential future @@ -1103,15 +1103,15 @@ export interface Schema$LatLng { * 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. + * 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 { /** diff --git a/src/apis/vision/v1p2beta1.ts b/src/apis/vision/v1p2beta1.ts index 63d85d46f7..1e778496ab 100644 --- a/src/apis/vision/v1p2beta1.ts +++ b/src/apis/vision/v1p2beta1.ts @@ -77,48 +77,48 @@ export class Vision { * little work, it can be easily formatted into a CSS "rgba()" string * in JavaScript, as well. Here are some examples: Example (Java): import * com.google.type.Color; // ... public static java.awt.Color - * fromProto(Color protocolor) { float alpha = protocolor.hasAlpha() - * ? protocolor.getAlpha().getValue() : 1.0; return new - * java.awt.Color( protocolor.getRed(), - * protocolor.getGreen(), protocolor.getBlue(), alpha); - * } public static Color toProto(java.awt.Color color) { float red - * = (float) color.getRed(); float green = (float) color.getGreen(); - * float blue = (float) color.getBlue(); float denominator = 255.0; - * Color.Builder resultBuilder = Color .newBuilder() - * .setRed(red / denominator) .setGreen(green / denominator) - * .setBlue(blue / denominator); int alpha = color.getAlpha(); if - * (alpha != 255) { result.setAlpha( FloatValue - * .newBuilder() .setValue(((float) alpha) / denominator) - * .build()); } return resultBuilder.build(); } // ... - * Example (iOS / Obj-C): // ... static UIColor* fromProto(Color* - * protocolor) { float red = [protocolor red]; float green = - * [protocolor green]; float blue = [protocolor blue]; - * FloatValue* alpha_wrapper = [protocolor alpha]; float alpha = 1.0; - * if (alpha_wrapper != nil) { alpha = [alpha_wrapper value]; - * } return [UIColor colorWithRed:red green:green blue:blue - * alpha:alpha]; } static Color* toProto(UIColor* color) { - * CGFloat red, green, blue, alpha; if (![color getRed:&red - * green:&green blue:&blue alpha:&alpha]) { return nil; - * } Color* result = [Color alloc] init]; [result setRed:red]; - * [result setGreen:green]; [result setBlue:blue]; if (alpha - * <= 0.9999) { [result setAlpha:floatWrapperWithValue(alpha)]; - * } [result autorelease]; return result; } // ... - * Example (JavaScript): // ... var protoToCssColor = - * function(rgb_color) { var redFrac = rgb_color.red || 0.0; var - * greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || - * 0.0; var red = Math.floor(redFrac * 255); var green = - * Math.floor(greenFrac * 255); var blue = Math.floor(blueFrac * 255); - * if (!('alpha' in rgb_color)) { return rgbToCssColor_(red, - * green, blue); } var alphaFrac = rgb_color.alpha.value || 0.0; - * var rgbParams = [red, green, blue].join(','); return - * ['rgba(', rgbParams, ',', alphaFrac, - * ')'].join(''); }; var rgbToCssColor_ = function(red, - * green, blue) { var rgbNumber = new Number((red << 16) | (green - * << 8) | blue); var hexString = rgbNumber.toString(16); var - * missingZeros = 6 - hexString.length; var resultBuilder = ['#']; - * for (var i = 0; i < missingZeros; i++) { - * resultBuilder.push('0'); } resultBuilder.push(hexString); - * return resultBuilder.join(''); }; // ... + * fromProto(Color protocolor) { float alpha = protocolor.hasAlpha() ? + * protocolor.getAlpha().getValue() : 1.0; return new + * java.awt.Color( protocolor.getRed(), protocolor.getGreen(), + * protocolor.getBlue(), alpha); } public static Color + * toProto(java.awt.Color color) { float red = (float) color.getRed(); + * float green = (float) color.getGreen(); float blue = (float) + * color.getBlue(); float denominator = 255.0; Color.Builder + * resultBuilder = Color .newBuilder() .setRed(red / + * denominator) .setGreen(green / denominator) .setBlue(blue / + * denominator); int alpha = color.getAlpha(); if (alpha != 255) { + * result.setAlpha( FloatValue .newBuilder() + * .setValue(((float) alpha) / denominator) .build()); } + * return resultBuilder.build(); } // ... Example (iOS / Obj-C): // + * ... static UIColor* fromProto(Color* protocolor) { float red = + * [protocolor red]; float green = [protocolor green]; float + * blue = [protocolor blue]; FloatValue* alpha_wrapper = [protocolor + * alpha]; float alpha = 1.0; if (alpha_wrapper != nil) { alpha + * = [alpha_wrapper value]; } return [UIColor colorWithRed:red + * green:green blue:blue alpha:alpha]; } static Color* + * toProto(UIColor* color) { CGFloat red, green, blue, alpha; if + * (![color getRed:&red green:&green blue:&blue alpha:&alpha]) { + * return nil; } Color* result = [Color alloc] init]; [result + * setRed:red]; [result setGreen:green]; [result + * setBlue:blue]; if (alpha <= 0.9999) { [result + * setAlpha:floatWrapperWithValue(alpha)]; } [result + * autorelease]; return result; } // ... Example + * (JavaScript): // ... var protoToCssColor = function(rgb_color) { + * var redFrac = rgb_color.red || 0.0; var greenFrac = rgb_color.green || + * 0.0; var blueFrac = rgb_color.blue || 0.0; var red = + * Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255); + * var blue = Math.floor(blueFrac * 255); if (!('alpha' in + * rgb_color)) { return rgbToCssColor_(red, green, blue); } var + * alphaFrac = rgb_color.alpha.value || 0.0; var rgbParams = [red, green, + * blue].join(','); return ['rgba(', rgbParams, + * ',', alphaFrac, ')'].join(''); }; var + * rgbToCssColor_ = function(red, green, blue) { var rgbNumber = new + * Number((red << 16) | (green << 8) | blue); var hexString = + * rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var + * resultBuilder = ['#']; for (var i = 0; i < missingZeros; + * i++) { resultBuilder.push('0'); } + * resultBuilder.push(hexString); return resultBuilder.join(''); + * }; // ... */ export interface Schema$Color { /** @@ -681,13 +681,13 @@ export interface Schema$GoogleCloudVisionV1p2beta1ImageSource { * The URI of the source image. Can be either: 1. A Google Cloud Storage URI * of the form `gs://bucket_name/object_name`. Object versioning is not * supported. See [Google Cloud Storage Request - * URIs](https://cloud.google.com/storage/docs/reference-uris) for more - * info. 2. A publicly-accessible image HTTP/HTTPS URL. When fetching images - * from HTTP/HTTPS URLs, Google cannot guarantee that the request will be - * completed. Your request may fail if the specified host denies the - * request (e.g. due to request throttling or DOS prevention), or if Google - * throttles requests to the site for abuse prevention. You should not - * depend on externally-hosted images for production applications. When both + * URIs](https://cloud.google.com/storage/docs/reference-uris) for more info. + * 2. A publicly-accessible image HTTP/HTTPS URL. When fetching images from + * HTTP/HTTPS URLs, Google cannot guarantee that the request will be + * completed. Your request may fail if the specified host denies the request + * (e.g. due to request throttling or DOS prevention), or if Google throttles + * requests to the site for abuse prevention. You should not depend on + * externally-hosted images for production applications. When both * `gcs_image_uri` and `image_uri` are specified, `image_uri` takes * precedence. */ @@ -752,8 +752,8 @@ export interface Schema$GoogleCloudVisionV1p2beta1OperationMetadata { export interface Schema$GoogleCloudVisionV1p2beta1OutputConfig { /** * The max number of response protos to put into each output JSON file on GCS. - * The valid range is [1, 100]. If not specified, the default value is 20. - * For example, for one pdf file with 100 pages, 100 response protos will be + * The valid range is [1, 100]. If not specified, the default value is 20. For + * example, for one pdf file with 100 pages, 100 response protos will be * generated. If `batch_size` = 20, then 5 json files each containing 20 * response protos will be written under the prefix `gcs_destination`.`uri`. * Currently, batch_size only applies to GcsDestination, with potential future @@ -897,10 +897,10 @@ export interface Schema$GoogleCloudVisionV1p2beta1Symbol { * top-right, bottom-right, bottom-left. When a rotation of the bounding box * is detected the rotation is represented as around the top-left corner as * defined when the text is read in the 'natural' orientation. For - * example: * when the text is horizontal it might look like: 0----1 - * | | 3----2 * when it's rotated 180 degrees around the - * top-left corner it becomes: 2----3 | | 1----0 and the - * vertice order will still be (0, 1, 2, 3). + * example: * when the text is horizontal it might look like: 0----1 | + * | 3----2 * when it's rotated 180 degrees around the top-left + * corner it becomes: 2----3 | | 1----0 and the vertice + * order will still be (0, 1, 2, 3). */ boundingBox: Schema$GoogleCloudVisionV1p2beta1BoundingPoly; /** @@ -918,9 +918,9 @@ export interface Schema$GoogleCloudVisionV1p2beta1Symbol { } /** * TextAnnotation contains a structured representation of OCR extracted text. - * The hierarchy of an OCR extracted text structure is like this: - * TextAnnotation -> Page -> Block -> Paragraph -> Word -> Symbol - * Each structural component, starting from Page, may further have their own + * The hierarchy of an OCR extracted text structure is like this: TextAnnotation + * -> Page -> Block -> Paragraph -> Word -> Symbol Each + * structural component, starting from Page, may further have their own * properties. Properties describe detected languages, breaks etc.. Please refer * to the TextAnnotation.TextProperty message definition below for more detail. */ @@ -1118,10 +1118,10 @@ export interface Schema$GoogleCloudVisionV1p2beta1Word { * top-right, bottom-right, bottom-left. When a rotation of the bounding box * is detected the rotation is represented as around the top-left corner as * defined when the text is read in the 'natural' orientation. For - * example: * when the text is horizontal it might look like: 0----1 - * | | 3----2 * when it's rotated 180 degrees around the - * top-left corner it becomes: 2----3 | | 1----0 and the - * vertice order will still be (0, 1, 2, 3). + * example: * when the text is horizontal it might look like: 0----1 | + * | 3----2 * when it's rotated 180 degrees around the top-left + * corner it becomes: 2----3 | | 1----0 and the vertice + * order will still be (0, 1, 2, 3). */ boundingBox: Schema$GoogleCloudVisionV1p2beta1BoundingPoly; /** @@ -1219,15 +1219,15 @@ export interface Schema$Operation { * 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. + * 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 { /** diff --git a/src/apis/youtube/v3.ts b/src/apis/youtube/v3.ts index 5db5914c6f..0ffb8ed5cb 100644 --- a/src/apis/youtube/v3.ts +++ b/src/apis/youtube/v3.ts @@ -2949,13 +2949,13 @@ export interface Schema$LiveStreamContentDetails { * stream for many different broadcasts if those broadcasts occur at different * times. If you set this value to false, then the stream will not be * reusable, which means that it can only be bound to one broadcast. - * Non-reusable streams differ from reusable streams in the following ways: - * - A non-reusable stream can only be bound to one broadcast. - A - * non-reusable stream might be deleted by an automated process after the - * broadcast ends. - The liveStreams.list method does not list non-reusable - * streams if you call the method and set the mine parameter to true. The only - * way to use that method to retrieve the resource for a non-reusable stream - * is to use the id parameter to identify the stream. + * Non-reusable streams differ from reusable streams in the following ways: - + * A non-reusable stream can only be bound to one broadcast. - A non-reusable + * stream might be deleted by an automated process after the broadcast ends. + * - The liveStreams.list method does not list non-reusable streams if you + * call the method and set the mine parameter to true. The only way to use + * that method to retrieve the resource for a non-reusable stream is to use + * the id parameter to identify the stream. */ isReusable: boolean; } diff --git a/src/apis/youtubereporting/v1.ts b/src/apis/youtubereporting/v1.ts index e7eae1645c..63c9ce988c 100644 --- a/src/apis/youtubereporting/v1.ts +++ b/src/apis/youtubereporting/v1.ts @@ -71,9 +71,9 @@ export class Youtubereporting { /** * 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 `{}`. + * 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 {} /** @@ -945,7 +945,7 @@ export class Resource$Media { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/media/{resourceName}') + url: (rootUrl + '/v1/media/{+resourceName}') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, diff --git a/src/lib/apirequest.ts b/src/lib/apirequest.ts index 8a0347be90..016fee7b30 100644 --- a/src/lib/apirequest.ts +++ b/src/lib/apirequest.ts @@ -16,7 +16,7 @@ import {DefaultTransporter} from 'google-auth-library'; import {BodyResponseCallback} from 'google-auth-library/build/src/transporters'; import * as qs from 'qs'; import * as stream from 'stream'; -import * as parseString from 'string-template'; +import * as urlTemplate from 'url-template'; import * as uuid from 'uuid'; import {APIRequestParams, GlobalOptions} from './api'; @@ -116,14 +116,10 @@ async function createAPIRequestAsync(parameters: APIRequestParams) { // Parse urls if (options.url) { - const encodedParams = Object.assign( - {}, - ...Object.keys(params).map( - x => ({[x]: encodeURIComponent(params[x])}))); - options.url = parseString(options.url, encodedParams); + options.url = urlTemplate.parse(options.url).expand(params); } if (parameters.mediaUrl) { - parameters.mediaUrl = parseString(parameters.mediaUrl, params); + parameters.mediaUrl = urlTemplate.parse(parameters.mediaUrl).expand(params); } // When forming the querystring, override the serializer so that array diff --git a/src/scripts/generator_utils.ts b/src/scripts/generator_utils.ts index 1bb580ebea..f6662555de 100644 --- a/src/scripts/generator_utils.ts +++ b/src/scripts/generator_utils.ts @@ -21,13 +21,7 @@ export function buildurl(input?: string) { return input ? ('\'' + input + '\'') - // No * symbols - .replace(/\*/g, '') - // No + symbols - .replace(/\+/g, '') // replace double slashes with single slash (except in https://) - .replace(/([^:]\/)\/+/g, '$1') - // No {/ symbols - .replace(/\{\//g, '/{') : + .replace(/([^:]\/)\/+/g, '$1') : ''; }